RpcHdr(3I) | InterViews Reference Manual | RpcHdr(3I) |
RpcHdr - header for remote procedure calls
#include <Dispatch/rpchdr.h>
An RpcHdr enables an RPC request to be sent or received. To send an RPC request, you would insert an RpcHdr into an rpcstream followed by any arguments and then flush the rpcstream if you wanted the request to be sent immediately. The rpcstream automatically fills in each RPC request's length field. To receive an RPC request, you would extract an RpcHdr from an rpcstream and examine the ``request()'' member to determine which additional arguments need to be extracted as well. You can examine the ``ndata()'' member too if you need to estimate how much space to allocate.
RpcReader(3I), RpcWriter(3I), rpcstream(3I)
27 March 1991 | InterViews |