You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
12
vendor/swoole/examples/client/udp_sync.php
vendored
Executable file
12
vendor/swoole/examples/client/udp_sync.php
vendored
Executable file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
$client = new swoole_client(SWOOLE_SOCK_UDP, SWOOLE_SOCK_SYNC);
|
||||
$client->connect('127.0.0.1', 9502);
|
||||
|
||||
for ($i = 0; $i < 100; $i++)
|
||||
{
|
||||
$client->send("admin");
|
||||
echo $client->recv()."\n";
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user