(PECL event >= 1.2.6-beta)
EventHttpConnection::getPeer — Gets the remote address and port associated with the connection
public EventHttpConnection::getPeer ( string &$address , int &$port ) : void
Gets the remote address and port associated with the connection
address
Address of the peer.
port
Port of the peer.
No value is returned.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/eventhttpconnection.getpeer.php