nf_srv_udpSetConnectionState

Suspends or resumes indicating of sends and receives for specified UDP socket via NF_EventHandler methods.
NF_STATUS nf_srv_udpSetConnectionState(ENDPOINT_ID id, BOOL suspended)

Parameters

id
Socket 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 sockets having large amount of data in send or receive buffers, to avoid wasting memory when the local process 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.

Requirements

Header nfsrvapi.h
Library nfsrvapi.lib