Packet Sniffer SDK DLL Edition

HNTcpManager :: Properties :: TcpMgrSetMaxSessionsCount

 Previous Next

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

Syntax:

DWORD __stdcall TcpMgrSetMaxSessionsCount(HANDLE hTcpMgr, DWORD MaxSessionsCount);

Parameters:

hTcpMgr

[in] HNTcpManager object handle.

Return values:

If the function succeeds the return value will be the MaxSessionsCount parameter value.

Description:

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

This property means that HNTcpManager while executing of the TcpMgrProcessPacket function on a new TCP session detection will register it only if SessionsCount property value is less or equal to TcpMgrSetMaxSessionsCount.

If TcpMgrSetMaxSessionsCount 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, TcpMgrGetMaxSessionsCount