nf_getTCPStat

Get TCP connection statistics as the numbers of in/out bytes.
NF_STATUS nf_getTCPStat(ENDPOINT_ID id, PNF_FLOWCTL_STAT pStat)

Parameters

id
Connection 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 tcpClosed handler. The statistics are counted for the connections having filtering flags NF_FILTER or NF_CONTROL_FLOW.

This function requires WFP driver.

Requirements

Driver type WFP
Header nfapi.h
Library nfapi.lib