浏览代码

add to local

stanley-king 8 年之前
父节点
当前提交
b3d3f58c91
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      centra_srv.php

+ 2 - 0
centra_srv.php

@@ -67,6 +67,8 @@ function remote_addr()
 $listen_fd = stream_socket_server (remote_addr(), $errno, $errstr);
 //search_work($listen_fd);
 
+$addr = remote_addr();
+echo "remote addr = {$addr} fd={$listen_fd}";
 $count = 1;
 while ($count-- > 0) {
     fork_subprocess($count,$listen_fd);