Packet Sniffer SDK DLL Edition

HNTcpSession :: Methods :: TcpSesGetClientPacketsCount

 Previous Next

Returns the number of packets sent by client.

Syntax:

DWORD __stdcall TcpSesGetClientPacketsCount(HANDLE hTcpSes, DWORD *HiValue);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

HiValue

[out] The pointer to the variable, in which the high DWORD of the result will be stored. May be set to NULL if the application does not need these data.

Return values:

If the function succeeds the return value will be the low-order doubleword of the number of packets sent by client, and if HiValue is non-NULL, the function will put the high-order doubleword of this number into the variable pointed to by this parameter.

Description:

Use this function to get the number of packets sent by client. This value is counted each time while TcpMgrProcessPacket function is being executed for certain TCP connection.

See also:HNTcpSession, TcpMgrProcessPacket