summaryrefslogtreecommitdiff
path: root/src/sub.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-05-30 10:07:34 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-05-30 10:07:34 +0200
commit0b59866a84f733e5a53b0d2f32570581691747ef (patch)
tree8861d97915544dc4385177931f299a6f27603c92 /src/sub.hpp
parent311fb0d852374e769d8ff791c9df38f0464960c6 (diff)
Patches from sub-forward branch incorporated
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/sub.hpp')
-rw-r--r--src/sub.hpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/sub.hpp b/src/sub.hpp
index 91a5b65..b5980ba 100644
--- a/src/sub.hpp
+++ b/src/sub.hpp
@@ -22,8 +22,6 @@
#define __ZMQ_SUB_HPP_INCLUDED__
#include "xsub.hpp"
-#include "trie.hpp"
-#include "msg.hpp"
namespace zmq
{
@@ -38,28 +36,11 @@ namespace zmq
protected:
int xsetsockopt (int option_, const void *optval_, size_t optvallen_);
- int xsend (class msg_t *msg_, int options_);
+ int xsend (class msg_t *msg_, int flags_);
bool xhas_out ();
- int xrecv (class msg_t *msg_, int flags_);
- bool xhas_in ();
private:
- // Check whether the message matches at least one subscription.
- bool match (class msg_t *msg_);
-
- // The repository of subscriptions.
- trie_t subscriptions;
-
- // If true, 'message' contains a matching message to return on the
- // next recv call.
- bool has_message;
- msg_t message;
-
- // If true, part of a multipart message was already received, but
- // there are following parts still waiting.
- bool more;
-
sub_t (const sub_t&);
const sub_t &operator = (const sub_t&);
};