nf_getUDPStat
Get UDP socket statistics as the numbers of in/out bytes.
NF_STATUS nf_getUDPStat(ENDPOINT_ID id, PNF_FLOWCTL_STAT pStat)
Parameters
- id
- Socket identifier
- pStat
- NF_FLOWCTL_STAT structure with statistics values
Return Values
NF_STATUS_SUCCESS on success, or other NF_STATUS error code on fail.
Remarks
The function can be called only from udpClosed handler.
The statistics are counted for the sockets having filtering flags NF_FILTER or NF_CONTROL_FLOW.
This function requires WFP driver.
Requirements
Driver type |
WFP
|
Header |
nfapi.h
|
Library |
nfapi.lib |