Developing a Remote Procedure Call facility using DECnet

by Alex Wong
Australia Post,Melbourne
DECUS Workshop, Feb 1992


In the beginning...


What is RPC?


Normal program

sub1(x)
call sub1(x)


RPC Client

Runtime
call sub1(x)

RPC Server

Runtime
sub1(x)


Why use RPC?


Implementing RPCs at Australia Post


MX Short calls


MX Long calls


Key MX Components


MX Short call example


How MX RPC works


MX Long call example


MX client runtime API
      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)
      


MXSHR callable functions


Sample MXSHR functions at AP