Permalink
Browse files

Adds pub socket to hypnotoad agent

  • Loading branch information...
yrashk committed Apr 25, 2012
1 parent 402e936 commit 232c20dbfa6124fc04d1896754615df8f080d432
Showing with 3 additions and 0 deletions.
  1. +3 −0 c_src/main.c
View
@@ -14,6 +14,9 @@ int main(int argc, char **argv) {
UserFunctions();
zmq = zmq_init(1);
+ void * pub = zmq_socket(zmq, ZMQ_PUB);
+ zmq_bind(pub, "tcp://*:5554");
+
void * sub = zmq_socket(zmq, ZMQ_SUB);
zmq_bind(sub, "tcp://*:5555");
zmq_setsockopt(sub, ZMQ_SUBSCRIBE, "", 0);

0 comments on commit 232c20d

Please sign in to comment.