nf_srv_tcpClose

Closes the connection with given id.
NF_STATUS nf_srv_tcpClose(ENDPOINT_ID id)

Parameters

id
Connection identifier

Return Values

NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.

Remarks

The driver cancels all pending send and receive requests and aborts the connection. For graceful disconnect call nf_srv_tcpPostSend and nf_srv_tcpPostReceive with zero length buffer after receiving the calls NF_EventHandler::tcpSend and NF_EventHandler::tcpReceive with zero buffer.

Requirements

Header nfsrvapi.h
Library nfsrvapi.lib