Packet Sniffer SDK DLL Edition

Events :: OnConnect

 Previous Next

Fires on the new TCP session is created.

Syntax:

void __stdcall OnConnect(DWORD_PTR Param, DWORD_PTR ThParam, HANDLE hLBSession, HANDLE hLBHosts, DWORD Direction);

Parameters:

Param

[in] OnConnect event handler parameter. May be set by the LbAdpSetOnConnect function call.

ThParam

[in] User defined thread parameter (see HNFN_THREADBEGIN).

hLBSession

[in] HNLBSession object handle.

hLBHosts

[in] HNLBHosts object handle.

Direction

[in] The direction of the operation (values are defined by HNLBDirection enumeration).

Description:

Use this event handler to make necessary actions at the moment of establishing of new TCP connection. OnConnect event handler is called by HNLBAdapter component when an application connects to a remote server, or a remote server connects application.

See also:HNLBAdapter, LbAdpSetOnConnect, HNFN_THREADBEGIN, HNLBSession, HNLBHosts, HNLBDirection