From ccac55c639a7257323bc2a8d4696fd49fbb56a71 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 7 May 2012 07:45:02 -0400 Subject: [PATCH] Poking at zeromq stuff again found some tabs! eeeek! --- zeromq/hwserver.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/zeromq/hwserver.c b/zeromq/hwserver.c index 1401470..3e9cea2 100644 --- a/zeromq/hwserver.c +++ b/zeromq/hwserver.c @@ -1,17 +1,21 @@ #include #include +#include #include #include +#define BIND_ADDR "tcp://*:5555" + int main(void) { void *context = zmq_init(1); void *responder = zmq_socket(context, ZMQ_REP); - printf("Binding server to tcp://*:5555\n"); - zmq_bind(responder, "tcp://*:5555"); + printf("Binding server to %s\n", BIND_ADDR); + printf("pid=%d\n", getpid()); + zmq_bind(responder, BIND_ADDR); - printf("Starting loop.\n"); + printf("Starting loop.\n"); while(1) { zmq_msg_t request; zmq_msg_init(&request);