The Yar_Client class

はじめに

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 that method name and the given arguments.

クラス概要

Yar_Client
/* プロパティ */
protected int $_protocol;
protected string $_uri;
protected arraynull $_options;
protected bool $_running;
/* メソッド */
final public __construct(string $uri, arraynull $options = null)
public mixed call(string $method, array $arguments)
public mixed getOpt(int $name)
public Yar_Clientbool setOpt(int $name, mixed $value)

プロパティ

_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-only. An array of the options set on this client, keyed by the YAR_OPT_* constants, or null if none were set.
_running
Read-only. Whether a call issued by this client is currently in progress.
目次