OTSndOrderlyDisconnect
Initiates or completes an orderly disconnection.C INTERFACE
OSStatus OTSndOrderlyDisconnect(EndpointRef ref);C++ INTERFACE
OSStatus TEndpoint::SndOrderlyDisconnect();PARAMETERS
ref- The endpoint reference of the endpoint initiating the orderly disconnect.
DESCRIPTION
You call theOTSndOrderlyDisconnectfunction to initiate an orderly release of a connection and to indicate to the peer endpoint that you have no more data to send. After calling this function, you must not send any more data over the connection. However, you can still continue to receive data if the peer endpoint has not yet called theOTSndOrderlyDisconnectfunction.This function is a service that is not supported by all protocols. If it is supported, the
servtypefield of theTEndpointInfostructure has the valueT_COTS_ORDorT_TRANS_ORD.The
OTSndOrderlyDisconnectfunction behaves exactly the same in all modes
of operation.VALID STATES
T_DATAXFER,T_INRELSEE ALSO
To send an abortive disconnect or to reject a connection request, you call theOTSndDisconnectfunction (page 3-149).For information on abortive and orderly disconnects, see "Terminating a Connection," beginning on page 3-30.
You examine the
TEndpointInfostructure (page 3-48) to determine whether the endpoint supports orderly release.