Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来做类似的事情IO.select,IO.pipe在 PHP 中。谷歌搜索几个小时并没有得到任何好的结果。基本上,对于预制服务器模型,我需要主进程和子进程之间的 IPC 文件描述符对。
IO.select
IO.pipe
要在进程之间进行 IPC 通信,stream_socket_pair这里的关键功能是
stream_socket_pair