跟安卓客户端传输问题

客户端传来一段数据,然后服务器端用$connection->send()传一段数据。 这段回传的数据不能被客户端收到,除非客户端在发送数据后shutdown输出流。 从网上查说是输入输出流阻塞的问题,不知道有没有什么解决方案?...

Hxuhao233 发表与 2016-04-27 2337 浏览 1 回答
继承worker

class tcp_server extends Worker{ public function _construct(){ $this->Worker("tcp://0.0.0.0:6666"); $this->count = 4; } } 这样写抛出异常 PHP Notice: Undefined offset: 1 in /home/hxuhao/...

Hxuhao233 发表与 2016-04-25 2379 浏览 1 回答

Hxuhao233

1980
积分
0
获赞数
0
粉丝数
2016-04-25 加入
🔝