Packet Sniffer SDK DLL Edition

Events :: OnSessionConnect

 Previous Next

Fires immediately after successful establishing of TCP connection.

Syntax:

void __stdcall OnSessionConnect(DWORD_PTR Param, HANDLE hTcpSession);

Parameters:

Param

[in] OnSessionConnect event handler parameter. May be set by the TcpMgrSetOnConnect function call.

hTcpSession

[in] HNTcpSession object handle.

Description:

Set this event handler to make necessary actions at the moment of the successful establishing of TCP connection between a server and a client. OnSessionConnect event handler is executed in the context of a thread, which has called TcpMgrProcessPacket function.

See also:HNTcpManager, TcpMgrSetOnConnect, HNTcpSession, TcpMgrProcessPacket