Types
Address: TYPE ~ Arpa.Address;
nullAddress: Address ~ Arpa.nullAddress;
Port: TYPE ~ ArpaUDP.Port;
nullPort: Port ~ ArpaUDP.nullPort;
Handle: TYPE ~ SunRPC.Handle;
Conversation: TYPE ~ SunRPC.Conversation;
Server: TYPE ~ SunRPC.Server;
Server Registration
ServerProc:
TYPE ~ SunRPC.ServerProc;
On entry, h is ready to get the arguments with SunRPC.GetXXX[h].
If doReply=FALSE, no reply message will be sent.
The value of replyTimeToLive is the number of seconds the reply message will be kept around by the SunRPCOnUDP package for duplicate handling.
CreateServer:
PROC [pgm, version:
CARD, serverProc: ServerProc, port: Port ¬ nullPort, concurrency:
CARDINAL ¬ 1, clientData:
REF ¬
NIL]
RETURNS [s: Server];
Register serverProc as server for this program / version.
The concurrency arg is the max number of concurrent calls that will be serviced.
GetServerPort:
PROC [s: Server]
RETURNS [port: Port];
Determine the port on which server is listening.
}...