Registers a procedure with the Remote Procedure Call (RPC) service package.
C Library (libc.a)
#include <rpc/rpc.h>
registerrpc (prognum, versnum, procnum, procname, inproc, outproc)
u_long prognum, versnum, procnum;
char * (* procname) ();
xdrproc_t inproc, outproc;
The registerrpc subroutine registers a procedure with the RPC service package.
If a request arrives that matches the values of the prognum parameter, the versnum parameter, and the procnum parameter, then the procname parameter is called with a pointer to its parameters, after which it returns a pointer to its static results.
Upon successful completion, this subroutine returns a value of 1. If unsuccessful, it returns a value of -1.
The callrpc subroutine, svcudp_create subroutine.
List of RPC Programming References.
eXternal Data Representation (XDR) Overview for Programming and Remote Procedure Call (RPC) Overview for Programming in AIX 5L Version 5.2 Communications Programming Concepts.