Associate flow control context with specified UDP socket.
NF_STATUS nf_setUDPFlowCtl(ENDPOINT_ID id, unsigned int fcHandle)
NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.
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. UDP socket 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.
Driver type | WFP |
Header | nfapi.h |
Library | nfapi.lib |