Client->sendto
向任意IP:PORT
的主机发送UDP数据包,仅支持SWOOLE_SOCK_UDP
/SWOOLE_SOCK_UDP6
类型
bool Client->sendto(string $ip, int $port, string $data);
$ip
,目标主机的IP
地址,支持IPv4
/IPv6
$port
,目标主机端口$data
,要发送的数据内容,不得超过64K
© Swoole.com 2008 - 2023 备案号:苏ICP备19021875号-1 | 苏公网安备 32058302002209号 | 版权声明
官方QQ群:810919826 开发组邮件列表: team@swoole.com 当前Swoole扩展版本:swoole-SWOOLE_VERSION