ChmpxServer Class Developer chmpxpx Functions

ChmpxSlave クラス

ChmpxSlaveクラスは、CHMPXを操作するメソッドを提供します。

Class 概要

ChmpxSlave {
    /** @var resource|null */
    public $chmpx_handle;
    /** @var resource|null */
    public $msgid_handle;

    /**
     * @param resource $handle
     */
    public function __construct($handle, bool $no_giveup_rejoin = false) {}
    public function __destruct() {}
    
    /** @param string $strbinary */
    public function receive(&$strbinary, int $timeout_ms = RCV_NO_WAIT): bool {}
    /**
     * @param string $strbinkey
     * @param string $strbinval
     */
    public function receiveKv(&$strbinkey, &$strbinval, int $timeout_ms = RCV_NO_WAIT): bool {}
	
    public function send(string $strbinary, bool $is_routing = true, bool $is_broadcast = false): int {}
    public function sendKv(string $strbinkey, string $strbinval, bool $is_routing = true, bool $is_broadcast = false): int {}
}

メソッド一覧

ChmpxServer Class Developer chmpxpx Functions