Important: The information in this document is obsolete and should not be used for new development.
The TUDErr Structure
TheTUDErr
structure points to information that explains why theOTSndUData
function has failed. You pass this structure as a parameter to theOTRcvUDErr
function.The
TUDErr
structure is defined by theTUDErr
type.
struct TUDErr { TNetbuf addr; TNetbuf opt; SInt32 error; }; typedef struct TUDErr TUDErr;Field descriptions
addr
- A
TNetbuf
structure that contains information about the destination address of the data sent using theOTSndUData
function. TheOTRcvUDErr
function fills in the buffer referenced by this structure when the function returns. You must allocate a buffer to contain the address, initialize theaddr.buf
field to point to it, and set theaddr.maxlen
field to specify its maximum size. If you are not interested in address information, setaddr.maxlen
to 0.opt
- A
TNetbuf
structure that contains information about the options associated with the data sent using theOTSndUData
function. TheOTRcvUDErr
function 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.buf
field to point to it, and initialize theopt.maxlen
field to specify the maximum size of the buffer. If you are not interested in option information, set theopt.maxlen
field to 0.error
- On return, this specifies a protocol-dependent error code for the
OTSndUData
function that failed.