@@ -122,6 +122,8 @@ class AsyncTcpConnection extends TcpConnection
}
// 标记状态为连接已经建立
$this->_status = self::STATUS_ESTABLISH;
+ // 获得远端实际ip端口
+ $this->_remoteAddress = stream_socket_get_name();
// 如果有设置onConnect回调,则执行
if($this->onConnect)
{