略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Swoole\Client::sendto

2024-05-21

Swoole\Client::sendto

(PECL swoole >= 1.9.0)

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

说明

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.

参数

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.

返回值

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/swoole-client.sendto.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3