You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
6
vendor/swoole/examples/udp/client.php
vendored
Executable file
6
vendor/swoole/examples/udp/client.php
vendored
Executable file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$client = new swoole_client(SWOOLE_SOCK_UDP, SWOOLE_SOCK_SYNC);
|
||||
$client->connect('127.0.0.1', 9905);
|
||||
$client->send(serialize(['hello' => str_repeat('A', 600), 'rand' => rand(1, 100)]));
|
||||
echo $client->recv() . "\n";
|
||||
sleep(1);
|
Reference in New Issue
Block a user