prefix-style message filtering added

This commit is contained in:
Martin Sustrik
2009-09-11 16:23:16 +02:00
parent 42ad2aa02d
commit 7be7962f98
2 changed files with 55 additions and 16 deletions

View File

@@ -41,9 +41,15 @@ namespace zmq
private:
// List of all the active subscriptions.
// Number of active "*" subscriptions.
int all_count;
// List of all prefix subscriptions.
typedef std::multiset <std::string> subscriptions_t;
subscriptions_t subscriptions;
subscriptions_t prefixes;
// List of all exact match subscriptions.
subscriptions_t topics;
};
}