Packet Sniffer SDK DLL Edition

HNTcpManager :: Methods :: TcpMgrDeleteSession

 Previous Next

Deletes tracked TCP session.

Syntax:

void __stdcall TcpMgrDeleteSession(HANDLE hTcpMgr, HANDLE hTcpSes);

Parameters:

hTcpMgr

[in] HNTcpManager object handle.

hTcpSes

[in] HNTcpSession object handle.

Description:

Use TcpMgrDeleteSession to delete TCP session before it completes (RFC 793). In this case event handlers OnPacketReturn will be called for each packet belonging to this session and awaiting for assembling in the HNTcpManager object. Also event handlers OnSessionClose and OnSessionDelete will be called one after another for this session.

Unlike the TcpMgrCloseSession function, this function unconditionally deletes the session (the value that you may return in the pbNeed parameter of the OnSessionClose event handler, will be ignored and set to TRUE).

See also:HNTcpManager, OnPacketReturn, OnSessionClose, OnSessionDelete