Chmpx Developer ChmpxSlave

ChmpxServer Class

ChmpxServer class provides methods to operation for CHMPX.

Class overview

class ChmpxServer {
    /** @var resource|null */
    public $chmpx_handle;
    /** @var resource|null */
    public $chmpx_pkt_handle;

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

Method list

Chmpx Developer ChmpxSlave