💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# getRemotePort ## 说明: ~~~ int Connection::getRemotePort() ~~~ 获得该连接的客户端端口 ## 参数 无参数 ## 范例 ~~~ $worker = new Worker('tcp://0.0.0.0:8484'); $worker->onConnect = function($connection) { echo "new connection from address " . $connection->getRemoteIp() . ":". $connection->getRemotePort() ."\n"; }; // 运行worker Worker::runAll(); ~~~