Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Server::sendMessageSwoole\Server::sendwait>
^Swoole\ServerLast updated: Mon, 26 Oct 2026

Swoole\Server::sendto

(PECL swoole >= 1.9.0)

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

Description

public function Swoole\Server::sendto(
    string $ip,
    int $port,
    string $data,
    string $server_socket = ?
): bool

Parameters

ip

port

data

server_socket

Return Values


<Swoole\Server::sendMessageSwoole\Server::sendwait>
^Swoole\ServerLast updated: Mon, 26 Oct 2026