svc_run man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



rpc_svc_reg(3N)						       rpc_svc_reg(3N)

NAME
     rpc_svc_reg:   svc_freeargs, svc_getargs, svc_getreqset,
     svc_getrpccaller, svc_run, svc_sendreply - library routines for RPC
     servers

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 [such as svc_run] are called when the server is initiated.

   Routines
     #include <rpc/rpc.h>

     int
     svc_freeargs(SVCXPRT *xprt, xdrproc_t inproc, void *in);

	  A function macro that frees any data allocated by the RPC/XDR system
	  when it decoded the arguments to a service procedure using
	  svc_getargs.	This routine returns 1 if the results were
	  successfully freed, and 0 otherwise.

     int
     svc_getargs(SVCXPRT *xprt, xdrproc_t inproc, void *in);

	  A function macro that decodes the arguments of an RPC request
	  associated with the RPC service transport handle xprt.  The
	  parameter in is the address where the arguments will be placed;
	  inproc is the XDR routine used to decode the arguments.  This
	  routine returns 1 if decoding succeeds, and 0 otherwise.

     void
     svc_getreqset(fd_set *rdfds);

	  This routine is only of interest if a service implementor does not
	  call svc_run, but instead implements custom asynchronous event
	  processing.  It is called when poll has determined that an RPC
	  request has arrived on some RPC file descriptors; rdfds is the
	  resultant read file descriptor bit mask.  The routine returns when
	  all file descriptors associated with the value of rdfds have been
	  serviced

     struct netbuf *
     svc_getrpccaller(SVCXPRT *xprt);

	  The approved way of getting the network address of the caller of a
	  procedure associated with the RPC service transport handle xprt.

									Page 1

rpc_svc_reg(3N)						       rpc_svc_reg(3N)

     void
     svc_run(void);

	  This routine never returns.  It waits for RPC requests to arrive,
	  and calls the appropriate service procedure using svc_getreqset when
	  one arrives.	This procedure is usually waiting for a poll library
	  call to return.

     int
     svc_sendreply(SVCXPRT *xprt, xdrproc_t outproc,
	  void *out);

	  Called by an RPC service's dispatch routine to send the results of a
	  remote procedure call.  The parameter xprt is the request's
	  associated transport handle; outproc is the XDR routine which is
	  used to encode the results; and out is the address of the results.
	  This routine returns 1 if it succeeds, 0 otherwise.

SEE ALSO
     poll(2), rpc(3N), rpc_svc_calls(3N), rpc_svc_create(3N), rpc_svc_err(3N)

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net