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

9
vendor/swoole/examples/server/single.php vendored Executable file
View File

@ -0,0 +1,9 @@
<?php
//single process single thread
$server = new swoole_server('127.0.0.1', 9501, SWOOLE_BASE);
$server->on('Receive', function($serv, $fd, $reactor_id, $data) {
$serv->send($fd, "Swoole: $data");
});
$server->start();