如何在apache上运行swoole

如何在apache上运行swoole


慕的地10843
浏览 539回答 1
1回答

慕神8447489

操作方法如下:$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";
打开App,查看更多内容
随时随地看视频慕课网APP