ChmpxServer Class Developer chmpxpx Functions

ChmpxSlave Class

ChmpxSlave class provides methods to operation for CHMPX.

Class overview

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 {}
}

Method list

ChmpxServer Class Developer chmpxpx Functions