Important: The information in this document is obsolete and should not be used for new development.
Endpoint States
TheOTGetEndpointState
function returns an integer specifying the current state of an endpoint. Integer values and their corresponding constant names are given by the endpoint states enumeration. For information about endpoint states, see the section "Endpoint States".
enum { T_UNINIT = 0, T_UNBND = 1, T_IDLE = 2, T_OUTCON = 3, T_INCON = 4, T_DATAXFER = 5, T_OUTREL = 6, T_INREL = 7 };Constant descriptions
T_UNINIT
- This endpoint has been closed and destroyed.
T_UNBND
- This endpoint is initialized but has not yet been bound to an address.
T_IDLE
- This endpoint has been bound to an address and is ready for use: connectionless endpoints can send or receive data; connection-oriented endpoints can initiate or listen for a connection.
T_OUTCON
- This endpoint has initiated a connection and is waiting for the peer endpoint to accept the connection.
T_INCON
- This endpoint has received a connection request but has not yet accepted or rejected the request.
T_DATAXFER
- This connection-oriented endpoint can now transfer data because the connection has been established.
T_OUTREL
- This endpoint has issued an orderly disconnect that the peer has not acknowledged. The endpoint can continue to read data, but must not send any more data.
T_INREL
- This endpoint has received a request for an orderly disconnect, which it has not yet acknowledged. The endpoint can continue to send data until it acknowledges the disconnection request, but it must not read data.