NF_STATUS nf_srv_tcpClose(ENDPOINT_ID id)
NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.
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.
Header | nfsrvapi.h |
Library | nfsrvapi.lib |