« Swoole\Client::resume
Swoole\Client::sendfile »

Swoole\Client::send

(PECL swoole >= 1.9.0)

Swoole\Client::send — Send data to the remote TCP socket.

説明

public function Swoole\Client::send(string $data, string $flag = ?): int

パラメータ

data

The data to send which can be string or binary

flag

戻り値

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.

関連キーワード:
Swoole   Client   send   socket   client   Send   remote   swoole   flag   limit   resume   sendfile   binary   sends   successfully   length   sent   sets   errCode   sync   there   async   buffer   size
関連する関数・ページ:
swoole-client.sendfile   class.swoole-client   swoole-client.sendto   swoole-client.getpeername   swoole-client.recv   swoole-client.destruct