nf_tcpClose

Closes the connection with given id.
NF_STATUS nf_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_tcpPostSend and nf_tcpPostReceive with zero length buffer after receiving the calls NF_EventHandler::tcpSend and NF_EventHandler::tcpReceive with zero buffer.