Packet Sniffer SDK DLL Edition

HNAdapter :: Properties :: AdpGetMaxThreadCount

 Previous Next

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

Syntax:

DWORD __stdcall AdpGetMaxThreadCount(HANDLE hAdp);

Parameters:

hAdp

[in] HNAdapter object handle.

Return values:

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

Description:

Use AdpGetMaxThreadCount with the ThreadCount [Get/Set] property to make the work of Packet Sniffer SDK with the network 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 the network adapter is not less than the processors number in this system.

See also:HNAdapter, AdpGetThreadCount, AdpSetThreadCount