Swoole\Coroutine\Client->sendto

Declaration

<?php
Swoole\Coroutine\Client->sendto(string $ip, int $port, mixed $data)

Parameters

ip

The remote IP.

port

The remote port.

data

The data to send.

Return

Description

Send data to the remote IP and port.

Example