Important: The information in this document is obsolete and should not be used for new development.
The TBind Structure
TheTBindstructure 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, theTBindstructure also specifies the actual or desired number of connection requests that can be concurrently outstanding for the endpoint.You pass the
TBindstructure as a parameter to theOTBindfunction, theOTGetProtAddressfunction, and theOTResolveAddressfunction.The
TBindstructure is defined by theTBinddata type.
struct TBind { TNetbuf addr; OTQLen qlen; }; typedef struct TBindTBind;
Field Description
addr- A
TNetbufstructure that contains information about an address. Theaddr.maxlenfield specifies the maximum size of the address, theaddr.lenfield specifies the actual length of the address, and theaddr.buffield 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.buffield to point to this buffer; and you must set theaddr.lenfield 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.buffield to point to this buffer; and you must set theaddr.maxlenfield to the maximum size of the address that is being returned. You determine this value by examining theaddrfield of theTEndpointInfostructure 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
OTBindfunction. For connectionless endpoints, this field has no meaning.