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