PHP - Manual: Swoole\Client::sendto
2024-12-22
(PECL swoole >= 1.9.0)
Swoole\Client::sendto — Send data to the remote UDP address.
$ip
, int $port
, string $data
): boolThe swoole client should be type of SWOOLE_SOCK_UDP or SWOOLE_SOCK_UDP6.
ip
The IP address of remote host, IPv4 or IPv6.
port
The port number of remote host.
data
The data to send which should be less-than 64K.