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
- ChmpxServer::__construct - Creates a ChmpxServer instance
- ChmpxServer::__destruct - Destroys a ChmpxServer instance
- ChmpxServer::receive - Receives a message
- ChmpxServer::receiveKv - Receives a message with a key and a value
- ChmpxServer::reply - Replies a message
- ChmpxServer::replyKv - Replies a message with a key and a value