RPC_SVC_CALLS(3)

NAME
svc_getrpccaller, svc_sendreply - library routines for RPC servers

LIBRARY
libc

SYNOPSIS
#include <rpc/rpc.h>
struct netbuf *
svc_getrpccaller(const SVCXPRT *xprt);
enum xprt_stat
svc_sendreply(struct svc_req *request);

DESCRIPTION
These routines are part of the RPC library which allows C language programs to make procedure calls on other machines across the network.

These routines are associated with the server side of the RPC mechanism. Some of them are called by the server side dispatch function, while others are called when the server is initiated.

Routines
See rpc(3) for the definition of the SVCXPRT data structure.

svc_sendreply()
    Called by an RPC service's dispatch routine to send the results of a remote procedure call. The request argument is the request. Its struct rpc_msg ar_results fields must be set: proc is the XDR routine which is used to encode the results; and where is the address of the results. This routine returns XPRT_IDLE (0) for success, XPRT_DIED or greater otherwise.

SEE ALSO
poll(2), select(2), rpc(3), rpc_svc_create(3), rpc_svc_err(3), rpc_svc_reg(3)