nf_tcpSetConnectionState

Suspends or resumes indicating sends and receives for the specified TCP connection via NF_EventHandler methods.
NF_STATUS nf_tcpSetConnectionState(ENDPOINT_ID id, BOOL suspended)

Parameters

id
Connection identifier
suspended
TRUE to suspend, FALSE to resume

Return Values

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

Remarks

The library automatically suspends the connections having large amount of data in send or receive buffers, to avoid wasting memory when the network application or remote server are too slow. The automatic suspending is temporary, and the library resumes indicating new packets after successful delivery of the buffered data.