The Swoole\Client class
(PECL swoole >= 1.9.0)
Einführung
Klassenbeschreibung
Eigenschaften
- errCode
- sock
- reuse
- reuseCount
Vordefinierte Konstanten
Swoole\Client::MSG_OOB
Swoole\Client::MSG_PEEK
Swoole\Client::MSG_DONTWAIT
Swoole\Client::MSG_WAITALL
Inhaltsverzeichnis
- 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.