Packet Sniffer SDK DLL Edition
HNTcpManager :: Events :: TcpMgrSetOnDelete | | Previous Next |
Sets the address and the parameter value for the OnSessionDelete event handler
(see HNFN_TCPDELETE).
Syntax:
FARPROC __stdcall TcpMgrSetOnDelete(HANDLE hTcpMgr, FARPROC pfOnDelete, DWORD_PTR Param);
Parameters:
hTcpMgr
pfOnDelete
[in] Event handler function address.
This function must be declared as HNFN_TCPDELETE.
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 pfOnDelete parameter.
Description:
Use TcpMgrSetOnDelete to set the address and the parameter value for the OnSessionCreate
event handler. OnSessionDelete event handler is called in the context of a thread, which has
called the following functions:
TcpMgrProcessPacket,
TcpMgrResetSessions,
TcpMgrResetOnTimeOut,
TcpMgrDeleteSession.