libevent 绑定读事件无效的问题?

想自己了解了异步编程的流程, 写的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...

sayliu 发表与 2017-04-11 3567 浏览 1 回答
关于TcpConnection的send函数

$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(...

sayliu 发表与 2017-04-11 4155 浏览 1 回答

sayliu

1945
积分
0
获赞数
0
粉丝数
2017-04-10 加入
×
🔝