Packet Sniffer SDK DLL Edition

HNLBAdapter :: Properties :: LbAdpGetMaxThreadCount

 Previous Next

Returns the maximal number of the threads allowed to be created for work with the loopback adapter.

Syntax:

DWORD __stdcall LbAdpGetMaxThreadCount(HANDLE hLbAdp);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

Return values:

Returns the maximal threads number allowed to be created for the work with Loopback adapter. Its value may be counted by the formula: MaxThreadCount = ProcessorsCount + 1. Thus, on the single CPU PC MaxThreadCount value is equal to 2.

Description:

Use LbAdpGetMaxThreadCount with the ThreadCount [Get/Set] property to make the work of Packet Sniffer SDK with the loopback adapter most effective.

For example, on a multiprocessor system the traffic capture process is more effective if the number of threads created for the work with Loopback adapter is not less than the processors number in this system.

See also:HNLBAdapter, LbAdpGetThreadCount, LbAdpSetThreadCount