如何在apache上运行swoole
1 回答
慕神8447489
TA贡献1780条经验 获得超1个赞
操作方法如下:
$client = new swoole_client(SWOOLE_SOCK_TCP, SWOOLE_SOCK_SYNC); //同步阻塞
$client->connect('127.0.0.1', 9501) or die("connect failed\n");
$client->send(str_repeat("A", 600));
$data = $client->recv(700, 0) or die("recv failed\n);;
echo "recv: ",$data,"\n";
- 1 回答
- 0 关注
- 538 浏览
添加回答
举报
0/150
提交
取消