Packet Sniffer SDK DLL Edition

HNQueue :: Properties :: QueSetReceiveManyAtOnce

 Previous Next

Sets flag of using OnPacketsRecv event handler.

Syntax:

BOOL __stdcall QueSetReceiveManyAtOnce(HANDLE hQue, BOOL bReceiveManyAtOnce);

Parameters:

hQue

[in] HNQueue object handle.

bReceiveManyAtOnce

[in] The value of the OnPacketsRecv event handler using flag.

Return values:

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

Description:

ReceiveManyAtOnce flag was introduced for setting of using OnPacketsRecv event handler. To use OnPacketsRecv you should set ReceiveManyAtOnce flag in TRUE before QueStart function call, in this case internal thread of the packets queue will call OnPacketsRecv event handler instead of OnPacketRecv.

ReceiveManyAtOnce flag status changing during internal thread execution will not cause changing of OnPacketsRecv and/or OnPacketReceive event handlers.
See also:HNQueue, QueGetReceiveManyAtOnce, QueStart, OnPacketsRecv, OnPacketRecv