Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

14
vendor/swoole/examples/namespace/server.php vendored Executable file
View File

@@ -0,0 +1,14 @@
<?php
use Swoole\Server;
$serv = new Server("127.0.0.1", 9501);
$serv->on('receive', function (Server $serv, $fd, $from_id, $data) {
echo "[#".$serv->worker_id."]\tClient[$fd]: $data\n";
if ($serv->send($fd, "hello\n") == false)
{
echo "error\n";
}
});
$serv->start();