Packet Sniffer SDK DLL Edition

Constants Enumerations :: HNTcpCloseReason

 Previous Next

HNTcpCloseReason contains the constants indicating the TCP session close reason.

Syntax:

const crNormal   = 0; 
const crTimeOut  = 1; 
const crDataLost = 2; 
const crRecvRst  = 3; 
const crManual   = 4;
enum HNTcpCloseReason
{
   crNormal   = 0, 
   crTimeOut  = 1, 
   crDataLost = 2, 
   crRecvRst  = 3, 
   crManual   = 4  
};

Values:

crNormal

TCP session completed successffully.

crTimeOut

TCP session was closed by time-out (see TcpMgrResetOnTimeOut).

crDataLost

TCP session was closed because of impossibility of its data reconstruction, data were lost.

crRecvRst

Reset flag was received (RST: connection reset, see RFC 793).

crManual

TCP session was closed by one of the following functions:. TcpMgrCloseSession, TcpMgrDeleteSession, or TcpMgrResetSessions.

See also:HNTcpManager, TcpMgrCloseSession, TcpMgrDeleteSession, TcpMgrResetSessions, TcpMgrResetOnTimeOut