nf_setTCPFlowCtl

Associate flow control context with specified TCP connection.

NF_STATUS nf_setTCPFlowCtl(ENDPOINT_ID id, unsigned int fcHandle)

Parameters

id
Endpoint id of TCP connection
fcHandle
Flow control context handle

Return Values

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

Remarks

To count the traffic or limit the bandwidth using flow control context, it is necessary to associate the context with one or more TCP connections or UDP sockets. If fcHandle is zero, the function disables the association with flow control context for the specified connection/socket. TCP connection can be associated with only one flow control context. The flow control context can be associated with any number of connections/sockets.

This function requires WFP driver.

Requirements

Driver type WFP
Header nfapi.h
Library nfapi.lib