Retrieves the remote host’s port number.
InkReturnCode INKNetVConnRemotePortGet (INKVConn
vc
, int
*port
)
INKVConn vc
is the
connection between Traffic Server and the other end of the
connection (can be remote client or server).
int
*
is set to
the remote port value in host byte order.port
Obtains the port number of the remote host for the specified connection. The port is returned in host byte order.
INK_SUCCESS
if the API is called
successfully.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.