Important: The information in this document is obsolete and should not be used for new development.
The TCall Structure
You use theTCall
structure to specify the options and data associated with establishing a connection. You pass a pointer to this structure as a parameter to theOTConnect
function, theOTRcvConnect
function, theOTListen
function, and theOTAccept
function.If you are using the
TCall
structure to send information, you must allocate a buffer and initialize it to contain the information. Set the.buf
field of eachTNetbuf
to point to the buffer, and then specify the size of the buffer using the.len
field. Set this field to 0 if you are not sending data.If you are using the
TCall
structure to receive information, you must allocate a buffer into which the function can place the information when it returns. Then set the.buf
field of all theTNetbufs
to point to this buffer, and set the.maxlen
field to the maximum size of the information. Set this field to 0 if you are not interested in receiving information.The
TCall
structure is defined by theTCall
data type.
struct TCall { TNetbuf addr; TNetbuf opt; TNetbuf udata; OTSequence sequence; }; typedef struct TCall TCall;
Field Description
addr
- A
TNetbuf
structure that specifies the location and size of an address buffer.opt
- A
TNetbuf
structure that specifies the location and size of an options buffer.udata
- A
TNetbuf
structure that specifies the location and size of a buffer for data associated with a connection or disconnection request.sequence
- A 32-bit value used by the
OTListen
andOTAccept
functions to specify the connection ID.