Packet Sniffer SDK DLL Edition
Events :: OnSessionDelete | | Previous Next |
Fires immediately before deletion of
HNTcpSession object.
Syntax:
void __stdcall OnSessionDelete(DWORD_PTR Param, HANDLE hTcpSession);
Parameters:
Param
[in] OnSessionDelete event handler parameter. May be set by the
TcpMgrSetOnDelete function call.
hTcpSession
Description:
Set this event handler to make necessary actions at the moment of the
deletion of HNTcpSession object.
OnSessionDelete event handler is called in the context of a thread, which has
called the following functions:
TcpMgrProcessPacket,
TcpMgrResetSessions,
TcpMgrResetOnTimeOut,
TcpMgrDeleteSession.
 | After this event handler execution corresponding
HNTcpSession object ceases to
exist. Further using of it will lead to the application crash. |