GoLang Swoole\Client::send

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

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

PHP Swoole\Client::send

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


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

Swoole\Client::sendSend data to the remote TCP socket.


public integer Swoole\Client::send ( string $data [, string $flag ] )



The data to send which can be string or binary


Return Values

If the client sends data successfully, it returns the length of data sent. Or it returns false and sets $swoole_client->errCode. For sync client, there is no limit for the data to send. For async client, The limit for the data to send is socket_buffer_size.