Group: | Remote Procedure Call |
See also: | rpclink rpcsendrequest rpcstartclient rpcstartserver rpcstopclient rpcstopserver rpcstoptimer systemcall |
Function: | rpcstarttimer | |
Description: |
rpcstarttimer starts a timer that checks for incoming RPC requests from external clients.
|
Usage: | rpcstarttimer (time, id, message) | |
Input: | ||
time | scalar | |
id | scalar | |
message | string |
checks for incoming RPC requests. id gives the timer identity. It has to to be used
in rpcstoptimer if this particular timer should be terminated. message indicates
the type of the timer.message can be any string.
It is not implemented under windows version.
rpcstartserver ("0x43000000") rpcstarttimer (100, 0, "XGobiTimer") ; systemcall ("$XGOBIDIR/bin/xgobi -server 0x43000000 -client 0x42000000 -link xplore &") systemcall ("sleep 5") ; xg1 = rpcstartclient ("0x42000000") ; rpcsendrequest (xg1, 11, "xplore 2 3", 10) rpcsendrequest (xg1, 12, "1 2 3 4 5 6", 10) rpcsendrequest (xg1, 13, "1203 2102 3304", 10) rpcsendrequest (xg1, 14, "", 10)
Activates the XploRe RPC mechanism (server and client) and starts up XGobi as a client (with three plotted symbols). Later, both programs can send RPC requests to each other.
Group: | Remote Procedure Call |
See also: | rpclink rpcsendrequest rpcstartclient rpcstartserver rpcstopclient rpcstopserver rpcstoptimer systemcall |