Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Remote Procedure Call
See also: rpcsendrequest rpcstartclient rpcstartserver rpcstarttimer rpcstopclient rpcstopserver rpcstoptimer systemcall

Function: rpclink
Description: rpclink links an XploRe display with an external RPC client.

Link:
Usage: rpclink (display, i, j, handle, portnumber)
Input:
d display
i scalar
j scalar
handle scalar
portnumber hex string

Note:

Example:

library ("rpclib/rpclib")
;
XGobiColormap = setxgobicolormap ()
data = uniform (10, 5)
setmaskp (data, 2, 5, 8)
;
rpcstartserver ("0x43000000")
rpcstarttimer (100, 0, "XGobiTimer")
;
systemcall ("$XGOBIDIR/bin/xgobi -server 0x43000000 -client 0x42000000 -link xplore &")
systemcall ("sleep 5")
;
xg1 = rpcstartclient ("0x42000000")
;
xgobisendmatrix (xg1, data, "data")
;
d = createdisplay (1, 1)
show (d, 1, 1, data)
setgopt (d, 1, 1, "brushsize", 10 | 10)
setmode (d, 1, 1, 1)
;  
rpclink (d, 1, 1, xg1, "0x42000000")
Result:

Activates the XploRe RPC mechanism (server and client) and starts up XGobi as a client
(with ten plotted symbols). Later, both programs can send RPC requests to each other.
Display (d, 1, 1) has been linked to the client with handle xg1. Linked brushing
between the XploRe and XGobi windows is possible.
Note that the result of setxgobicolormap must be assigned to XGobiColormap
to allow linked brushing between XploRe and XGobi prior to the call
to rpclink. The macros setxgobicolormap and xgobisendmatrix are part
of the XploRe library rpclib.

Group: Remote Procedure Call
See also: rpcsendrequest rpcstartclient rpcstartserver rpcstarttimer rpcstopclient rpcstopserver rpcstoptimer systemcall

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000