summaryrefslogtreecommitdiff
path: root/src/socket_base.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-11 18:18:25 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-11 18:18:25 +0200
commit89b1f2782ca6a1db9c68b7d642b5a41cc4d56414 (patch)
treeaf33b35e372ae3bf4eaef47a24160bf64d9fcdc1 /src/socket_base.hpp
parent47350adcb6ea48512d732bc323eb1835a5ac9908 (diff)
parent1a4d6f91194c52795808baa07dcd61a20ff599be (diff)
Merge branch 'master' of git@github.com:sustrik/zeromq2
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r--src/socket_base.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/socket_base.hpp b/src/socket_base.hpp
index 5711dbe..398cd32 100644
--- a/src/socket_base.hpp
+++ b/src/socket_base.hpp
@@ -38,7 +38,7 @@ namespace zmq
{
public:
- socket_base_t (class app_thread_t *parent_);
+ socket_base_t (class app_thread_t *parent_, int type_);
virtual ~socket_base_t ();
// Interface for communication with the API layer.
@@ -87,6 +87,9 @@ namespace zmq
// fair queueing.
bool fetch (struct zmq_msg_t *msg_);
+ // Type of the socket.
+ int type;
+
// List of all I/O objects owned by this socket. The socket is
// responsible for deallocating them before it quits.
typedef std::set <class owned_t*> io_objects_t;