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
- ChmpxSlave::__construct - Creates a empty Chmpx instance
- ChmpxSlave::__destruct - Destroys a Chmpx instance
- ChmpxSlave::receive - Receives a message
- ChmpxSlave::receiveKv - Receives a message witha a key and a value
- ChmpxSlave::send - Sends a message
- ChmpxSlave::sendKv - Sends a message with a key and a value