Packet Sniffer SDK DLL Edition

HNLBAdapter :: Events :: LbAdpSetOnTcpPacketRecv

 Previous Next

Sets the address and the parameter value for the OnTcpPacketReceive event handler (see HNFN_LBTCPPKTRECEIVE).

Syntax:

FARPROC __stdcall LbAdpSetOnTcpPacketRecv(HANDLE hLbAdp, FARPROC pfOnTcpPacketReceive, DWORD_PTR Param);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

pfOnTcpPacketReceive

[in] Event handler function address. This function must be declared as HNFN_LBTCPPKTRECEIVE.

Param

[in] Event handler parameter. This parameter is sent to the event handler each time it is called.

Return values:

If the function succeeds the return value will be the value of the pfOnTcpPacketReceive parameter.

Description:

Use LbAdpSetOnTcpPacketRecv to set the address and the parameter value for the OnTcpPacketReceive event handler. OnTcpPacketReceive event handler is called by HNLBAdapter component when an application sends or receives data (e.g. using Send or WSASend sockets functions).

See also:HNLBAdapter, HNFN_LBTCPPKTRECEIVE