Packet Sniffer SDK DLL Edition

HNTcpSession :: Properties :: TcpSesGetServerPort

 Previous Next

Returns port number of the server participating in the connection.

Syntax:

WORD __stdcall TcpSesGetServerPort(HANDLE hTcpSes);

Parameters:

hTcpSes

[in] HNTcpSession object handle.

Return values:

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

Description:

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

See also:HNTcpSession, HNTcpManager