source: WorldVistAEHR/trunk/r/RPC_BROKER-XWB/XWBM2MEZ.m@ 1226

Last change on this file since 1226 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 727 bytes
Line 
1XWBM2MEZ ;OIFO-Oakland/JLI - M2M Broker EZ Usage ;08/01/2006 7925229.750776
2 ;;1.1;RPC BROKER;**45**;Mar 28, 1997
3 ;
4 QUIT
5 ;
6CONNECT(PORT,IP,AV) ;
7 S XWBPARMS("MODE")="RPCBroker"
8 S XWBPARMS("RETRIES")=3
9 I '$$CONNECT^XWBM2MC(PORT,IP,AV) Q "Didn't get port open or AV failed."
10 Q 1
11 ;
12CLOSE ;Close the connection.
13 N X
14 S X=$$CLOSE^XWBM2MC()
15 Q
16 ;
17SETCNTXT(CONTX) ;
18 I '$$SETCONTX^XWBM2MC(CONTX) D CLOSE Q "Didn't get Context"
19 Q 1
20 ;
21DORPC(RESULT,RPCNAME) ;
22 S RESULT=$G(RESULT)
23 K XWBY
24 Q $$CALLRPC^XWBM2MC(RPCNAME,.RESULT,1)
25 ;
26CLEARP ;
27 K XWBPARMS
28 S XWBPARMS("MODE")="RPCBroker"
29 Q
30 ;
31SETPARAM(INDEX,TYPE,VALUE) ;Set a Params entry
32 S XWBPARMS("PARAMS",INDEX,"TYPE")=TYPE
33 S XWBPARMS("PARAMS",INDEX,"VALUE")=VALUE
34 Q
35 ;
Note: See TracBrowser for help on using the repository browser.