TT_MESSAGE_ARG_XVAL(3)
π NAME π
tt_message_arg_xval β from the library call manual, bestie β retrieves and deserializes the data from a message argument. β¨
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_message_arg_xval(
Tt_message m,
int n,
xdrproc_t xdr_proc,
void **value);
π¦ DESCRIPTION π¦
Okay so tt_message_arg_xval retrieves and deserializes the data from a message argument. It does this using an XDR routine that is supplied by the client. No cap, you bring the XDR procedure. π
The m argument is the opaque handle for the message involved in this operation. The n argument is the number of the argument to be returned, and the first argument is numbered zero. Yes, zero. Programmer brain. π«Ά
The xdr_proc argument points to the XDR procedure to be used to deserialize the data in the nth argument into newly allocated storage, the address of which will be stored in the pointer whose address is value. π
The value argument is the data to be deserialized. πΈ
π RETURN VALUE π
Upon successful completion, tt_message_arg_xval returns the status of the operation as one of the following Tt_status values:
TT_OKβ the operation completed successfully. πTT_ERR_MODEβ the specifiedTt_modeis invalid.TT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it.TT_ERR_POINTERβ the pointer passed does not point to an object of the correct type for this operation.TT_ERR_NUMβ the integer value passed was invalid (out of range).TT_ERR_XDRβ the XDR procedure failed on the given data, or evaluated to a zero-length structure.
π§ APPLICATION USAGE π§
Important storage tea: the allocation calls are made by the XDR procedure. Therefore, any storage allocated is not allocated from the ToolTalk allocation stack. The application should use the xdr_free(3) call to free this storage. Fr fr, donβt forget the cleanup. π§Ό
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5)
Source/section: library call. Version/date: the footer didnβt show separate version/date tea, so no invented details here β just good old manual-page energy. Byeee, and may your XDR always slay. ππ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms