Important: The information in this document is obsolete and should not be used for new development.
OTSndOrderlyDisconnect
Initiates 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.
- function result
- An error code. See Appendix B.
DISCUSSION
You call theOTSndOrderlyDisconnect
function to initiate an orderly disconnect 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 until the peer calls theOTSndOrderlyDisconnect
function.This function is a service that is not supported by all protocols. If it is supported, the
servtype
field of theTEndpointInfo
structure has the valueT_COTS_ORD
orT_TRANS_ORD
.The
OTSndOrderlyDisconnect
function behaves exactly the same in all modes of operation.SEE ALSO
TheOTSndDisconnect
function.