想自己了解了异步编程的流程, 写的demo 里libevent 绑定读事件无效的问题,大门帮看下?? server.php <?php $soc = stream_socket_server('tcp://0.0.0.0:2032'); var_dump($soc); stream_set_blocking($soc, 0); $eventBase = event_base_new(); $event = e...
$len = @fwrite($this->_socket, $send_buffer); // send successful. if ($len === strlen($send_buffer)) { return true; } // Send only part of the data. if ($len > 0) { $this->_sendBuffer = substr(...