diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-11 18:16:47 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-11 18:16:47 +0200 |
commit | 47350adcb6ea48512d732bc323eb1835a5ac9908 (patch) | |
tree | e439927e9a04c673d745db1fd380d4baf7807c60 /src/app_thread.cpp | |
parent | e940878b3f8ff332df534c4df463cfdf085cc787 (diff) |
separate class for PUB-style socket added
Diffstat (limited to 'src/app_thread.cpp')
-rw-r--r-- | src/app_thread.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app_thread.cpp b/src/app_thread.cpp index 2bcc724..c48657a 100644 --- a/src/app_thread.cpp +++ b/src/app_thread.cpp @@ -35,6 +35,7 @@ #include "pipe.hpp" #include "config.hpp" #include "socket_base.hpp" +#include "pub.hpp" #include "sub.hpp" // If the RDTSC is available we use it to prevent excessive @@ -138,11 +139,13 @@ zmq::socket_base_t *zmq::app_thread_t::create_socket (int type_) { socket_base_t *s = NULL; switch (type_) { + case ZMQ_PUB: + s = new pub_t (this); + break; case ZMQ_SUB: s = new sub_t (this); break; case ZMQ_P2P: - case ZMQ_PUB: case ZMQ_REQ: case ZMQ_REP: s = new socket_base_t (this); |