projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
contrib
/
zeromq_pubsub.py
diff --git a/contrib/zeromq_pubsub.py
b/contrib/zeromq_pubsub.py
new file mode 100644
(file)
index 0000000..
6047777
--- /dev/null
+++ b/
contrib/zeromq_pubsub.py
@@ -0,0
+1,9
@@
+import zmq
+
+context = zmq.Context()
+s = context.socket(zmq.SUB)
+s.connect("tcp://localhost:11999")
+s.setsockopt(zmq.SUBSCRIBE, "")
+while 1:
+ d = s.recv()
+ print d