From a696112a5c1a493e24ec4f72d1c4df95e5d390dc Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 26 May 2012 09:17:47 +0200 Subject: Topic filter implemented The filter is build into libxs rather than being a plug-in. It's ID is XS_FILTER_TOPIC. The filter assumed that the messages are text-based and consider binary 0 to be a delimiter separating message topic from the message body. Use of the delimiter is not mandatory though. If binary zero is not present, whole message is used for matching. The topic is separated into elements using dots, e.g. "animals.dogs.fluffy". Subscriptions match individual elements. Each element can be matched by either literal string or a wildcard (*), for example: "animals.*.fluffy" matches all animals called Fluffy irrsepctive of whether they are dogs, cats or whatever. Signed-off-by: Martin Sustrik --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 8c3de7c..1daee23 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -77,6 +77,7 @@ libxs_la_SOURCES = \ tcp_connecter.hpp \ tcp_listener.hpp \ thread.hpp \ + topic_filter.hpp \ upoll.hpp \ windows.hpp \ wire.hpp \ @@ -136,6 +137,7 @@ libxs_la_SOURCES = \ tcp_connecter.cpp \ tcp_listener.cpp \ thread.cpp \ + topic_filter.cpp \ upoll.cpp \ xpub.cpp \ xrep.cpp \ -- cgit v1.2.3