Packet Sniffer SDK DLL Edition

HNTcpSession :: Properties :: TcpSesGetClientPort

 Previous Next

Returns port number of the client participating in the connection.

Syntax:

WORD __stdcall TcpSesGetClientPort(HANDLE hTcpSes);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

Return values:

If the function succeeds the return value will be port number of the client participating in the connection.

Description:

Use TcpSesGetClientPort to get port number of the client participating in the connection. This value is set by HNTcpManager object at the moment of the object creation.

See also:HNTcpSession, HNTcpManager