Packet Sniffer SDK DLL Edition

HNTcpManager :: Methods :: TcpMgrCloseSession

 Previous Next

Stops tracking of TCP session.

Syntax:

void __stdcall TcpMgrCloseSession(HANDLE hTcpMgr, HANDLE hTcpSes);

Parameters:

hTcpMgr

[in] HNTcpManager object handle.

hTcpSes

[in] HNTcpSession object handle.

Description:

Use TcpMgrCloseSession to stop tracking of 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.

See also:HNTcpManager, OnPacketReturn, OnSessionClose, OnSessionDelete