Parameters fd Identifies the local transport endpoint where the connection existed.
If a disconnect indication occurs, the sequence field can be used to identify which of the outstanding connect indications is associated with the disconnect. If a user does not care if there is incoming data and does not need to know the value of the reason or sequence fields, the discon field value may be a null pointer and any user data associated with the disconnect will be discarded. Return Values 0 Successful completion. The specified file descriptor does not refer to a transport endpoint. No disconnect indication currently exists on the specified transport endpoint.