php8.5
Home/ Manual/ event / eventhttpconnection/ EventHttpConnection::getPeer

EventHttpConnection::getPeer

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Gets the remote address and port associated with the connection

Description

EventHttpConnection::getPeer(string $address, int $port): void

Gets the remote address and port associated with the connection

Parameters

address

Address of the peer.

port

Port of the peer.

Return Values

Void

Source: reference/event/eventhttpconnection/getpeer.xml · from the official PHP manual (php/doc-en)