The Swoole\Client class
(PECL swoole >= 1.9.0)
簡介
類摘要
class 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
目錄
- 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.