Important: The information in this document is obsolete and should not be used for new development.
The TCall Structure
You use theTCallstructure to specify the options and data associated with establishing a connection. You pass a pointer to this structure as a parameter to theOTConnectfunction, theOTRcvConnectfunction, theOTListenfunction, and theOTAcceptfunction.If you are using the
TCallstructure to send information, you must allocate a buffer and initialize it to contain the information. Set the.buffield of eachTNetbufto point to the buffer, and then specify the size of the buffer using the.lenfield. Set this field to 0 if you are not sending data.If you are using the
TCallstructure to receive information, you must allocate a buffer into which the function can place the information when it returns. Then set the.buffield of all theTNetbufsto point to this buffer, and set the.maxlenfield to the maximum size of the information. Set this field to 0 if you are not interested in receiving information.The
TCallstructure is defined by theTCalldata type.
struct TCall { TNetbuf addr; TNetbuf opt; TNetbuf udata; OTSequence sequence; }; typedef struct TCall TCall;
Field Description
addr- A
TNetbufstructure that specifies the location and size of an address buffer.opt- A
TNetbufstructure that specifies the location and size of an options buffer.udata- A
TNetbufstructure 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
OTListenandOTAcceptfunctions to specify the connection ID.