RPC_XDR(3)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

🌸 RPC_XDR(3) 🌸

okay bestie, welcome to RPC_XDR(3), straight out of the Library Functions Manual. This page is all about the XDR library routines for remote procedure calls, and yes, it's giving very specific Unix energy. πŸ’…


✨ NAME ✨

The main-character functions on this page are: xdr_accepted_reply, xdr_authsys_parms, xdr_callhdr, xdr_callmsg, xdr_opaque_auth, xdr_rejected_reply, and xdr_replymsg β€” literally XDR library routines for remote procedure calls. 🫢

πŸŽ€ LIBRARY πŸŽ€

Standard C Library (libc, -lc). Yes, the classic. πŸ’–

🌈 SYNOPSIS 🌈

#include <rpc/rpc.h>

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

bool_t
xdr_authsys_parms(XDR *xdrs, struct authsys_parms *aupp);

bool_t
xdr_callhdr(XDR *xdrs, struct rpc_msg *chdr);

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

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

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

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

πŸ¦‹ 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 directly. These routines return TRUE if they succeed, FALSE otherwise. no cap. 😌

🧚 Routines 🧚

See rpc(3) for the definition of the XDR data structure. okay go look, bestie. πŸ‘€

✨ xdr_accepted_reply()

Used to translate between RPC reply messages and their external representation. It includes the status of the RPC call in the XDR language format. In the case of success, it also includes the call results. slay. πŸ’…

🌸 xdr_authsys_parms()

Used for describing Unix operating system credentials. It includes machine-name, uid, gid list, etc. iconic credential behavior. πŸŽ€

πŸ”₯ xdr_callhdr()

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 and version number. periodt. ⭐

🫢 xdr_callmsg()

Used for describing RPC call messages. This includes all the RPC call information such as transaction ID, RPC version number, program number, version number, authentication information, etc. This is normally used by servers to determine information about the client RPC call. server main character energy fr fr. πŸ‘‘

πŸ’œ xdr_opaque_auth()

Used for describing RPC opaque authentication information messages. mysterious, opaque, lowkey iconic. πŸ™ˆ

πŸ“ xdr_rejected_reply()

Used for describing RPC reply messages. It encodes the rejected RPC message in the XDR language format. The message could be rejected either because of version number mis-match or because of authentication errors. not the rejection arc 😭 but okay.

🌟 xdr_replymsg()

Used for describing RPC reply messages. It translates between the RPC reply message and its external representation. This reply could be either an acceptance, rejection or NULL. a whole spectrum, honestly. 🌈

πŸ’– SEE ALSO πŸ’–

rpc(3), xdr(3) β€” go read these too, bestie, for the full lore. 🧚


πŸŽ€ cute little sign-off: this page is from Debian, dated May 3, 1993, and it's page RPC_XDR(3). mwah, bye bestie! πŸ’–βœ¨
πŸ“¦ where this page comes from
  • freebsd 15.1: base 15.1
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms