From 63ff276544e01305f6228cbcf48545e539266fa2 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 16 Jul 2012 14:41:18 -0400 Subject: [PATCH] updates --- client/Makefile | 2 +- client/main.cpp | 2 +- server/main.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/Makefile b/client/Makefile index 782faae..4e53b5f 100644 --- a/client/Makefile +++ b/client/Makefile @@ -1,4 +1,4 @@ -#CXXFLAGS += -fpermissive +CXXFLAGS += -fpermissive LDFLAGS += -lzmq all: main diff --git a/client/main.cpp b/client/main.cpp index e873a12..d1ae1e6 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -19,7 +19,7 @@ int main(int ac, char** av) return 1; } zmq::socket_t s (ctx, ZMQ_REQ); - s.connect ("tcp://localhost:5555"); + s.connect ("tcp://127.0.0.1:5555"); zmq::message_t request (10); memset (request.data (), 0, request.size ()); s.send (request); diff --git a/server/main.cpp b/server/main.cpp index 0acaa73..f934b84 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -25,7 +25,8 @@ void *worker_routine (void *arg) } int main(int ac, char** av) { - zmq::context_t ctx (1); + int threads = 5; + zmq::context_t ctx (threads); zmq::socket_t workers (ctx, ZMQ_XREQ); workers.bind ("inproc://workers");