Packet Sniffer SDK DLL Edition

HNTcpManager :: Properties :: TcpMgrGetMaxSessionsCount

 Previous Next

Returns the maximum number of TCP sessions to be monitored at the same time.

Syntax:

DWORD __stdcall TcpMgrGetMaxSessionsCount(HANDLE hTcpMgr);

Parameters:

hTcpMgr

[in] HNTcpManager object handle.

Return values:

If the function succeeds the return value will be the maximum number of TCP sessions to be monitored at the same time. The default value is 10.

Description:

Use TcpMgrGetMaxSessionsCount to change the maximum number of TCP sessions to be tracked at the same time.

The value means that HNTcpManager will register it while executing of the TcpMgrProcessPacket function on a new TCP session detection only if SessionsCount[Get] property value is less or equal to MaxSessionsCount[Get/Set].

If MaxSessionsCount[Get/Set] is equal to 0, then there are no limits for the number of TCP sessions to be monitored at the same time.

See also:HNTcpManager, TcpMgrProcessPacket, TcpMgrGetSessionsCount, TcpMgrSetMaxSessionsCount