The Swoole\Client class
(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Client
{
/* Constants */
/* 属性 */
public
$errCode
;
public
$sock
;
public
$reuse
;
public
$reuseCount
;
/* 方法 */
}属性
- errCode
-
- sock
-
- reuse
-
- reuseCount
-
预定义常量
Swoole\Client::MSG_OOB
-
Swoole\Client::MSG_PEEK
-
Swoole\Client::MSG_DONTWAIT
-
Swoole\Client::MSG_WAITALL
-
Table of Contents
- Swoole\Client::close — Close the connection established.
- Swoole\Client::connect — Connect to the remote TCP or UDP port.
- Swoole\Client::__construct — Create Swoole sync or async TCP/UDP client, with or without SSL.
- Swoole\Client::__destruct — Destruct the Swoole client.
- Swoole\Client::getpeername — Get the remote socket name of the connection.
- Swoole\Client::getsockname — Get the local socket name of the connection.
- Swoole\Client::isConnected — Check if the connection is established.
- Swoole\Client::on — Add callback functions triggered by events.
- Swoole\Client::pause — Pause receiving data.
- Swoole\Client::pipe — Redirect the data to another file descriptor.
- Swoole\Client::recv — Receive data from the remote socket.
- Swoole\Client::resume — Resume receiving data.
- Swoole\Client::send — Send data to the remote TCP socket.
- Swoole\Client::sendfile — Send file to the remote TCP socket.
- Swoole\Client::sendto — Send data to the remote UDP address.
- Swoole\Client::set — Set the Swoole client parameters before the connection is established.
- Swoole\Client::sleep — Remove the TCP client from system event loop.
- Swoole\Client::wakeup — Add the TCP client back into the system event loop.