next up previous contents
Next: PowerRPC library functions Up: Functions in the generated Previous: Client side functions

Server functions

SVCXPRT* <interface>_<version>_reg(int sock, u_long pno, u_long vno, int protocol)


Parameters:

sock
a bound socket or RPC_ANYSOCK.
pno
the RPC program number. When this is 0, the one specified in the interface is used.
vno
the RPC version number. When this is 0, the one specified in the interface is used.
protocol
IPPROTO_TCP or IPPROTO_UDP.

Return value:

A pointer to the server transport. NULL on failure.

This function takes register the <interface> RPC server with the specified parameters.

void <interface>_<version>_main(int argc, char**argv)


Parameters:

argc
Number of command line arguments.
argv
The array of command line arguments.

This function starts the RPC server. It should never return.

void <interface>_unmap (u_long pno, u_long vno)


Parameters:

pno
the RPC program number. When this is 0, the one specified in the interface is used.
vno
the RPC version number. When this is 0, the one specified in the interface is used.

This function undo the RPC server registration with the portmapper.

PowerRPC library...


Copyright (C) Netbula LLC, 1996