Home

Traffic Server Software Developers Kit

INKNetVConnRemoteIPGet

Retrieves the remote host’s IP address.

Prototype

INKReturnCode INKNetVConnRemoteIPGet (INKVConn vc, unsigned int *ip)

Arguments

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

unsigned int *ip is set to the remote IP address, in network byte order.

Description

Obtains the remote IP address in network 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.