ZMQDevice::__construct
(PECL zmq >= 0.5.0)
ZMQDevice::__construct — Construct a new device
Description
"ØMQ devices can do intermediation of addresses, services, queues, or any other abstraction you care to define above the message and socket layers." -- zguide
Parameters
-
frontend
-
Frontend parameter for the devices. Usually where there messages are coming.
-
backend
-
Backend parameter for the devices. Usually where there messages going to.
-
listener
-
Listener socket, which receives a copy of all messages going both directions. The type of this socket should be SUB, PULL or DEALER.
Return Values
Call to this method will prepare the device. Usually devices are very long running processes so running this method from interactive script is not recommended. This method throw ZMQDeviceException if the device cannot be started.
- Функция ZMQDevice::__construct() - Construct a new device
- Функция ZMQDevice::getIdleTimeout() - Get the idle timeout
- Функция ZMQDevice::getTimerTimeout() - Get the timer timeout
- Функция ZMQDevice::run() - Run the new device
- Функция ZMQDevice::setIdleCallback() - Set the idle callback function
- Функция ZMQDevice::setIdleTimeout() - Set the idle timeout
- Функция ZMQDevice::setTimerCallback() - Set the timer callback function
- Функция ZMQDevice::setTimerTimeout() - Set the timer timeout
Коментарии
404 Not Found