Packet Sniffer SDK DLL Edition

HNTcpSession :: Properties :: TcpSesGetCloseReason

 Previous Next

Returns the reason why the TCP session has been closed.

Syntax:

DWORD __stdcall TcpSesGetCloseReason(HANDLE hTcpSes);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

Return values:

If the function succeeds the return value will be the reason why the TCP session has been closed. The value defined in the HNTcpCloseReason enumeration.

Description:

Use TcpSesGetCloseReason to obtain the reason why the TCP session has been closed according to the values defined in the HNTcpCloseReason enumeration.

See also:HNTcpSession, HNTcpCloseReason