GoLang Swoole\Client::sendto

request it (265)
GoLang replacement for PHP's Swoole\Client::sendto [edit | history]



Do you know a GoLang replacement for PHP's Swoole\Client::sendto? Write it!

PHP Swoole\Client::sendto

PHP original manual for Swoole\Client::sendto [ show | php.net ]

Swoole\Client::sendto

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

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

Description

public boolean Swoole\Client::sendto ( string $ip , integer $port , string $data )

The swoole client should be type of SWOOLE_SOCK_UDP or SWOOLE_SOCK_UDP6.

Parameters

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.

Return Values