wip
1 parent 7c0ff9f commit b8e61d31b2c988b97f125f098b02e09a7e5e4fce
@johnpearcey Dlat johnpearcey Dlat authored on 1 Dec
Showing 7 changed files
View
8
README.md
 
### Installation
--------
 
Currently the project contains only one file. Simply add it to your project.
Currently the project contains only one file. Simply add sysVcom.php to your project. Other files are for testing.
The global files need to be set correctly for your project. In particular, a file needs to be created which is
used as the buffer for the SysV system. In practice this is just used as a unique key but it must exist and be
reachable by both client and server.
 
The following methods are use to invoke an RPC
<pre>
rpc( $funcName, ...$params );
View
24
listen-ipc.php 0 → 100644
<?php
 
include "sysVcom.php";
 
//clear the queues at startup - otherwise things can get tricky
clear_IPC( );
 
$msgArr = null;
 
while(true){
//get msg
$caller_id = IPC_listen( $msgArr );
 
//send msg back
IPC_reply( $caller_id, $msgArr[$caller_id]['msg'] );
 
//done with the message
unset( $msgArr[$caller_id] );
}
 
?>
View
listen-rpc.php 0 → 100644
View
make-ipc.php 0 → 100644
View
make-rpc.php 0 → 100644
View
sysVcom.php 0 → 100644
View
time.php 0 → 100644