array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'swoole-client.sendto.php', 1 => 'Swoole\\Client::sendto', ), 'up' => array ( 0 => 'class.swoole-client.php', 1 => 'Swoole\\Client', ), 'prev' => array ( 0 => 'swoole-client.sendfile.php', 1 => 'Swoole\\Client::sendfile', ), 'next' => array ( 0 => 'swoole-client.set.php', 1 => 'Swoole\\Client::set', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/client/sendto.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL swoole >= 1.9.0)
Swoole\Client::sendto — Send data to the remote UDP address.
The 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.