« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 637 for client (0.002 sec.)
The Swoole\Client class | PHP 8.3 6880
The Swoole\Client class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Client { /* 定数 */ const int MSG_OOB = 1 ; const int MSG_PEEK = 2 ; const int MSG_DONTWAIT = 128 ; const int MSG_WAITALL = 64 ; /* プロパティ */ public $ errCo ... lic function sleep (): void public function wakeup (): void } プロパティ 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. Swool ...
https://man.mtool.work/php/8.3/class.swoole-client.html
Swoole | PHP 8.3 6662
Swoole はじめに Swoole is a parallel network communication engine based on asynchronous event-driven and coroutine, written in C++, providing coroutine and high-performance network programming support for PHP. It provides various network se ... rver and client modules for multiple communication protocols, making it easy to quickly implement TCP/UDP services, high-performance Web, ... ile — Write data to a file asynchronously swoole_clear_error — Clear errors in the socket or on the last error code swoole_client_select — Get the file description which are ready to read/write or error swoole_cpu_num — Get the number of CPU swoole_err ... _event_del — Remove all event callback functions of a socket swoole_event_exit — Exit the eventloop, only available at the client side swoole_event_set — Update the event callback functions of a socket swoole_event_wait — Start the event loop swoole_ev ...
https://man.mtool.work/php/8.3/book.swoole.html
Yet Another RPC Framework | PHP 8.3 6640
Yet Another RPC Framework はじめに Yar (Yet another RPC framework) is a light, concurrent RPC framework which aims to provide a simple and easy way to do communication between PHP applications. It can also issue multiple calls to remote ser ... Server — The Yar_Server class Yar_Server::__construct — Create an RPC server Yar_Server::handle — Start the RPC server Yar_Client — The Yar_Client class Yar_Client::call — Call a remote service Yar_Client::__construct — Create a client Yar_Client::getO ... pt — Read a client option Yar_Client::setOpt — Set client options Yar_Concurrent_Client — The Yar_Concurrent_Client class Yar_Concurrent_Clie ... nt::call — Register a concurrent call Yar_Concurrent_Client::loop — Send and wait for all registered calls Yar_Concurrent_Client::reset — Clean all registered calls Yar_Server_Except ...
https://man.mtool.work/php/8.3/book.yar.html
Yar_Client::__construct — Create a client | PHP 8.3 6618
Yar_Client::__construct (PECL yar >= 1.0.0) Yar_Client::__construct — Create a client 説明 final public function Yar_Client::__construct ( string $uri , ? array $options = null ) Creates a Yar_Client for the RPC service located at uri . パラ ... t the HTTP transport, tcp:// selects the TCP transport, and unix:// selects the Unix socket transport. options An array of client options, keyed by the YAR_OPT_* constants, equivalent to calling Yar_Client::setOpt() for each entry. Invalid options are ... silently skipped. 戻り値 A new Yar_Client instance. エラー / 例外 If the URI does not start with a supported scheme, a Yar_Client_Protocol_Exception is thrown. 例 例 ... 1 Yar_Client::__construct() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); /* with options */ $clien ...
https://man.mtool.work/php/8.3/yar-client.construct.html
Yar_Client::getOpt — Read a client option | PHP 8.3 6618
Yar_Client::getOpt (PECL yar >= 1.1.0) Yar_Client::getOpt — Read a client option 説明 public function Yar_Client::getOpt ( int $name ): mixed Returns the value previously set with Yar_Client::setOpt() , or with the options parameter of Yar_ ... Client::__construct() . パラメータ name One of the YAR_OPT_* constants, see Yar_Client::setOpt() . 戻り値 The option value, or false if the option has not been set on this client or the option name is unknown. ... 例 例1 Yar_Client::getOpt() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); $client -> setOpt ( YAR_OPT_TI ... MEOUT , 1000 ); var_dump ( $client -> getOpt ( YAR_OPT_TIMEOUT )); var_dump ( $client -> getOpt ( YAR_OPT_PACKAGER )); ?> 上の例の出力は、 たとえば以下のよう ...
https://man.mtool.work/php/8.3/yar-client.getopt.html
The Swoole\Http\Client class | PHP 8.3 6589
The Swoole\Http\Client class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Http\Client { /* プロパティ */ public $ errCode ; public $ sock ; /* メソッド */ public function addFile ( string $path , string $name , string $type = ? , ... ethod ): void public function upgrade ( string $path , string $callback ): void } プロパティ errCode sock 目次 Swoole\Http\Client::addFile — Add a file to the post form. Swoole\Http\Client::close — Close the http connection. Swoole\Http\Client::__const ... ruct — Construct the async HTTP client. Swoole\Http\Client::__destruct — Destruct the HTTP client. Swoole\Http\Client::download — Download a file from the remote ... server. Swoole\Http\Client::execute — Send the HTTP request after setting the parameters. Swoole\Http\Client::get — Send GET http request to the remo ...
https://man.mtool.work/php/8.3/class.swoole-http-client.html
The Yar_Client class | PHP 8.3 6567
The Yar_Client class (No version information available, might only be in Git) はじめに The client side of the Yar RPC framework. A client is bound to a single service address; invoking any undefined method on it issues a remote call with th ... at method name and the given arguments. クラス概要 class Yar_Client { /* プロパティ */ protected int $ _protocol ; protected string $ _uri ; protected ? array $ _options ; protected bool $ _ ... y $arguments ): mixed public function getOpt ( int $name ): mixed public function setOpt ( int $name , mixed $value ): Yar_Client | bool } プロパティ _protocol Read-only. The protocol derived from the service address: one of YAR_CLIENT_PROTOCOL_HTTP , ... YAR_CLIENT_PROTOCOL_TCP or YAR_CLIENT_PROTOCOL_UNIX . _uri Read-only. The service address the client was created with. _options Read- ...
https://man.mtool.work/php/8.3/class.yar-client.html
Yar_Client::call — Call a remote service | PHP 8.3 6451
Yar_Client::call (PECL yar >= 1.0.0) Yar_Client::call — Call a remote service 説明 public function Yar_Client::call ( string $method , array $arguments ): mixed Issues an RPC call to the remote method method . This is exactly what happens w ... hen a non-existent method is invoked on a Yar_Client object (via PHP's __call magic method); Yar_Client::call() only exists so that remote methods literally named call or __ca ... lue of the remote service method. エラー / 例外 When the remote method does not exist on the server, or is not public, the client throws a Yar_Client_Exception with the code YAR_ERR_REQUEST . See Yar_Client_Exception for the other client-side failures ... and their exception classes. 例 例1 Yar_Client::call() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); /* The usual way: invoke the rem ...
https://man.mtool.work/php/8.3/yar-client.call.html
Yar_Client::setOpt — Set client options | PHP 8.3 6356
Yar_Client::setOpt (PECL yar >= 1.0.0) Yar_Client::setOpt — Set client options 説明 public function Yar_Client::setOpt ( int $name , mixed $value ): Yar_Client | bool Sets an option on the client. Options are evaluated when a call is issued ... to 32 bytes value The option value. An invalid value raises a warning and makes the call return false . 戻り値 Returns the client object itself, allowing a fluent interface, or false when the option name is unknown, the value is invalid, or the option ... does not apply to the protocol the client was created with. エラー / 例外 Conditions that make the call return false also raise a warning: YAR_OPT_HEADER , YAR_OPT_ ... RESOLVE and YAR_OPT_PROXY only work with the HTTP protocol; using them with a tcp:// or unix:// client raises a warning. YAR_OPT_RESOLVE additionally requires libcurl >= 7.21.3. Each option expects a specific value type (stri ...
https://man.mtool.work/php/8.3/yar-client.setopt.html
Yar_Client_Exception::getType — Retrieve exception's type | PHP 8.3 6334
Yar_Client_Exception::getType (PECL yar >= 1.0.0) Yar_Client_Exception::getType — Retrieve exception's type 説明 public function Yar_Client_Exception::getType (): string Returns the type of the exception. Client-side exceptions are raised b ... y the client itself (transport failures, protocol errors and so on), so the type is always the fixed string "Yar_Exception_Client" . Us ... the code is one of the YAR_ERR_* constants. パラメータ この関数にはパラメータはありません。 戻り値 Returns "Yar_Exception_Client" . 例 例1 Yar_Client_Exception::getType() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ) ... ; try { $client -> some_method ( "parameter" ); } catch ( Yar_Client_Exception $e ) { var_dump ( $e -> getType ()); var_dump ( $e -> getCo ...
https://man.mtool.work/php/8.3/yar-client-exception.gettype.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT