Home

Traffic Server Software Developers Kit

INKNetVConnRemotePortGet

Retrieves the remote host’s port number.

Prototype

InkReturnCode INKNetVConnRemotePortGet (INKVConn vc, int *port)

Arguments

INKVConn vc is the connection between Traffic Server and the other end of the connection (can be remote client or server).

int *port is set to the remote port value in host byte order.

Description

Obtains the port number of the remote host for the specified connection. The port is returned in host byte order.

Returns

INK_SUCCESS if the API is called successfully.

INK_ERROR if an error occurs while calling the API or if an argument is invalid.