array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'swoole-client.sendto.php', 1 => 'Swoole\\Client::sendto', 2 => 'Send data to the remote UDP address.', ), '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', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Client::sendto

(PECL swoole >= 1.9.0)

Swoole\Client::sendtoSend data to the remote UDP address.

Açıklama

public Swoole\Client::sendto(string $ip, int $port, string $data): bool

The swoole client should be type of SWOOLE_SOCK_UDP or SWOOLE_SOCK_UDP6.

Bağımsız Değişkenler

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.

Dönen Değerler