diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-03-23 17:44:16 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-03-23 17:44:16 +0100 |
commit | 941be8d2175332cb720f390f93d07a0870db8824 (patch) | |
tree | 79ed1c130c460901be85e9aeb0b584aa40be40ed /src/zmq.cpp | |
parent | d4d184a750e2c09a39b95db9a54daf83aac5a446 (diff) |
zmq_device removed
Devices are basically applications on top of 0MQ stack. They
should reside in separate libraties.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/zmq.cpp')
-rw-r--r-- | src/zmq.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp index 5029734..89848e7 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -40,7 +40,6 @@ #include <stdlib.h> #include <new> -#include "device.hpp" #include "socket_base.hpp" #include "msg_content.hpp" #include "stdint.hpp" @@ -729,23 +728,6 @@ int zmq_errno () return errno; } -int zmq_device (int device_, void *insocket_, void *outsocket_) -{ - if (!insocket_ || !outsocket_) { - errno = EFAULT; - return -1; - } - - if (device_ != ZMQ_FORWARDER && device_ != ZMQ_QUEUE && - device_ != ZMQ_STREAMER) { - errno = EINVAL; - return -1; - } - - return zmq::device ((zmq::socket_base_t*) insocket_, - (zmq::socket_base_t*) outsocket_); -} - //////////////////////////////////////////////////////////////////////////////// // 0MQ utils - to be used by perf tests //////////////////////////////////////////////////////////////////////////////// |