Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rpc(3C)

rpc_xdr(3C)

NAME

xdr_accepted_reply, xdr_authunix_parms, xdr_callhdr, xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg − XDR library routines for remote procedure calls

DESCRIPTION

These routines are used for describing the RPC messages in XDR language.  They should normally be used by those who do not want to use the RPC package. 

Routines

The following routines require that the header <rpc.h> be included. 

The XDR data structure is defined in Power Programming with RPC.

#include <rpc/rpc.h>

bool_t
xdr_accepted_reply(xdrs, arp)
XDR *xdrs;
struct accepted_reply *arp;

Used for encoding RPC reply messages.  It encodes the status of the RPC call in the XDR language format and in the case of success, it encodes the call results as well.  This routine is useful for users who wish to generate RPC-style messages without using the RPC package. This routine returns TRUE if it succeeds, FALSE otherwise. 

bool_t
xdr_authunix_parms(xdrs, aup)
XDR *xdrs;
struct authunix_parms *aup;

Used for describing UNIX credentials.  It includes machine name, user ID, group ID list, etc.  This routine is useful for users who wish to generate these credentials without using the RPC authentication package.  This routine returns TRUE if it succeeds, FALSE otherwise. 

void
xdr_callhdr(xdrs, chdrp)
XDR *xdrs;
struct rpc_msg *chdrp;

Used for describing RPC call header messages.  It encodes the static part of the call message header in the XDR language format.  It includes information such as transaction ID, RPC version number, program number, and version number.  This routine is useful for users who wish to generate RPC-style messages without using the RPC package. 

bool_t
xdr_callmsg(xdrs, cmsgp)
XDR *xdrs;
struct rpc_msg *cmsgp;

Used for describing RPC call messages.  It includes all the RPC call information such as transaction ID, RPC version number, program number, version number, authentication information, etc.  This routine is useful for users who wish to generate RPC-style messages without using the RPC package.  This routine returns TRUE if it succeeds, FALSE otherwise. 

bool_t
xdr_opaque_auth(xdrs, ap)
XDR *xdrs;
struct opaque_auth *ap;

Used for describing RPC authentication information messages.  This routine is useful for users who wish to generate RPC-style messages without using the RPC package.  This routine returns TRUE if it succeeds, FALSE otherwise. 

bool_t
xdr_rejected_reply(xdrs, rrp)
XDR *xdrs;
struct rejected_reply *rrp;

Used for describing RPC reply messages.  It encodes the rejected RPC message in the XDR language format.  The message is rejected either because of version number mismatch or because of authentication errors.  This routine is useful for users who wish to generate RPC-style messages without using the RPC package.  This routine returns TRUE if it succeeds, FALSE otherwise. 

bool_t
xdr_replymsg(xdrs, rmsgp)
XDR *xdrs;
struct rpc_msg *rmsgp;

Used for describing RPC reply messages.  It encodes the RPC reply message in the XDR language format.  This reply could be an acceptance, rejection, or NULL.  This routine is useful for users who wish to generate RPC style messages without using the RPC package.  This routine returns TRUE if it succeeds, FALSE otherwise. 

AUTHOR

rpc_xdr was developed by Sun Microsystems, Inc. 

SEE ALSO

rpc(3C)

Hewlett-Packard Company  —  HP-UX Release 10.20:  July 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026