略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Swoole\Client::send

2024-12-22

Swoole\Client::send

(PECL swoole >= 1.9.0)

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

说明

public 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.

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/swoole-client.send.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3