Packet Sniffer SDK DLL Edition

HNLBAdapter :: Events :: LbAdpSetOnUdpPacketRecv

 Previous Next

Sets the address and the parameter value for the OnUdpPacketReceive event handler (see HNFN_LBUDPPKTRECEIVE).

Syntax:

FARPROC __stdcall LbAdpSetOnUdpPacketRecv(HANDLE hLbAdp, FARPROC pfOnUdpPacketReceive, DWORD_PTR Param);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

pfOnUdpPacketReceive

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

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 pfOnUdpPacketReceive parameter.

Description:

Use LbAdpSetOnUdpPacketRecv to set the address and the parameter value for the OnUdpPacketReceive event handler. OnUdpPacketReceive event handler is called by HNLBAdapter component when an application sends or receives data (e.g. using Sendto or WSASendTo sockets functions).

See also:HNLBAdapter, HNFN_LBUDPPKTRECEIVE