From 941be8d2175332cb720f390f93d07a0870db8824 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 23 Mar 2011 17:44:16 +0100 Subject: zmq_device removed Devices are basically applications on top of 0MQ stack. They should reside in separate libraties. Signed-off-by: Martin Sustrik --- include/zmq.h | 10 ---------- include/zmq.hpp | 7 ------- 2 files changed, 17 deletions(-) (limited to 'include') diff --git a/include/zmq.h b/include/zmq.h index e0e5653..6f8e766 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -241,16 +241,6 @@ typedef struct ZMQ_EXPORT int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout); -/******************************************************************************/ -/* Devices - Experimental. */ -/******************************************************************************/ - -#define ZMQ_STREAMER 1 -#define ZMQ_FORWARDER 2 -#define ZMQ_QUEUE 3 - -ZMQ_EXPORT int zmq_device (int device, void * insocket, void* outsocket); - #undef ZMQ_EXPORT #ifdef __cplusplus diff --git a/include/zmq.hpp b/include/zmq.hpp index 813535f..2189e81 100644 --- a/include/zmq.hpp +++ b/include/zmq.hpp @@ -62,13 +62,6 @@ namespace zmq return rc; } - inline void device (int device_, void * insocket_, void* outsocket_) - { - int rc = zmq_device (device_, insocket_, outsocket_); - if (rc != 0) - throw error_t (); - } - class message_t : private zmq_msg_t { friend class socket_t; -- cgit v1.2.3