« Swoole\Client::sendfile
Swoole\Client::set »

Swoole\Client::sendto

(PECL swoole >= 1.9.0)

Swoole\Client::sendto — Send data to the remote UDP address.

説明

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

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.

戻り値

関連キーワード:
Swoole   Client   remote   address   Send   sendto   port   swoole   host   sendfile   client   type   number   send   less
関連する関数・ページ:
swoole-client.sendfile   swoole-client.connect   swoole-server.sendto   swoole-client.getpeername   class.swoole-client   swoole-client.send