Important: The information in this document is obsolete and should not be used for new development.
The TBind Structure
TheTBind
structure describes the protocol address to which an endpoint is currently bound or connected, or specifies the protocol address to which you wish to bind or connect the endpoint. For a connection-oriented endpoint, theTBind
structure also specifies the actual or desired number of connection requests that can be concurrently outstanding for the endpoint.You pass the
TBind
structure as a parameter to theOTBind
function, theOTGetProtAddress
function, and theOTResolveAddress
function.The
TBind
structure is defined by theTBind
data type.
struct TBind { TNetbuf addr; OTQLen qlen; }; typedef struct TBindTBind;
Field Description
addr
- A
TNetbuf
structure that contains information about an address. Theaddr.maxlen
field specifies the maximum size of the address, theaddr.len
field specifies the actual length of the address, and theaddr.buf
field points to the buffer containing the address.
- When specifying an address, you must allocate a buffer for the address and initialize it; you must set the
addr.buf
field to point to this buffer; and you must set theaddr.len
field to the size of the address.- When requesting an address, you must allocate a buffer in which the address is to be placed; you must set the
addr.buf
field to point to this buffer; and you must set theaddr.maxlen
field to the maximum size of the address that is being returned. You determine this value by examining theaddr
field of theTEndpointInfo
structure for the endpoint.qlen
- For a connection-oriented endpoint, the maximum number of connection requests that can be concurrently outstanding for this endpoint. For more information, see the description of the
OTBind
function. For connectionless endpoints, this field has no meaning.