Normal program
sub1(x) call sub1(x)
RPC Client
Runtime call sub1(x) RPC Server
Runtime sub1(x)
character node*6
status=MX_$SHORT('HV3','MX_$ECHO',%ref(node),len(node))
integer function MX_$ECHO(node)
structure /node_struct/
character s*6
end structure
record /node_struct/ node
MX_$ECHO=sys$getsyi(...)
node.s=...
return
ok=MX_$OPEN('HV8',chan)
ok=MX_$LONG(chan,'MX_$TRNLNM',%ref('APQ'),len('APQ'),%ref('lnm$system'),len('lnm$system'),
%ref(buf),sizeof(buf),buflen,4)
if (ok) then
ok=MX_$LONG(chan,'MX_$GETQUE',%ref(buf),blen,%ref(qrec),sizeof(qrec))
endif
call MX_$CLOSE(chan)
SHORT CALL:
status=MX_$SHORT(node,function,arg1,len1,...)
LONG CALL:
status=MX_$OPEN(node,chan)
status=MX_$LONG(chan,function,arg1,len1,...)
status=MX_$CLOSE(chan)