IO adds remoteAddress to Connection
This commit is contained in:
parent
dd79245ecf
commit
aa51ea53f9
@ -161,6 +161,8 @@ class IOServerComponent implements MessageComponentInterface {
|
|||||||
$new_socket->set_nonblock();
|
$new_socket->set_nonblock();
|
||||||
$new_connection = new Connection($new_socket);
|
$new_connection = new Connection($new_socket);
|
||||||
|
|
||||||
|
$new_connection->remoteAddress = $new_socket->getRemoteAddress();
|
||||||
|
|
||||||
$this->_resources[] = $new_connection->getSocket()->getResource();
|
$this->_resources[] = $new_connection->getSocket()->getResource();
|
||||||
$this->_connections[$new_connection->getSocket()->getResource()] = $new_connection;
|
$this->_connections[$new_connection->getSocket()->getResource()] = $new_connection;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user