ec_httpsrv_request_peer_address

March 26, 2020 Contributors

Name

ec_httpsrv_request_peer_address — Returns the remote peer address from the current session

Synopsis

#include "/modules/listeners/httpsrv.h"

| ec_sockaddr * **ec_httpsrv_request_peer_address** ( | sess); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>;

Description

**Configuration Change. ** This option is available as of version 4.0.

This function returns the remote peer IP address from the current session.

Parameters

sess

session to interrogate

Return Values

address in ec_sockaddr * format

The remote peer IP address will be valid for the lifetime of the session.