Important: The information in this document is obsolete and should not be used for new development.
The TUDErr Structure
TheTUDErrstructure points to information that explains why theOTSndUDatafunction has failed. You pass this structure as a parameter to theOTRcvUDErrfunction.The
TUDErrstructure is defined by theTUDErrtype.
struct TUDErr { TNetbuf addr; TNetbuf opt; SInt32 error; }; typedef struct TUDErr TUDErr;Field descriptions
addr- A
TNetbufstructure that contains information about the destination address of the data sent using theOTSndUDatafunction. TheOTRcvUDErrfunction fills in the buffer referenced by this structure when the function returns. You must allocate a buffer to contain the address, initialize theaddr.buffield to point to it, and set theaddr.maxlenfield to specify its maximum size. If you are not interested in address information, setaddr.maxlento 0.opt- A
TNetbufstructure that contains information about the options associated with the data sent using theOTSndUDatafunction. TheOTRcvUDErrfunction fills in the buffer referenced by this structure when the function returns. If you want to know this information, you must allocate a buffer to contain the option data, initialize theopt.buffield to point to it, and initialize theopt.maxlenfield to specify the maximum size of the buffer. If you are not interested in option information, set theopt.maxlenfield to 0.error- On return, this specifies a protocol-dependent error code for the
OTSndUDatafunction that failed.