Commit 93e70ee5 authored by Martin Sustrik's avatar Martin Sustrik

throughput tests use P2P sockets consistently

parent 95944551
......@@ -36,7 +36,7 @@ int main (int argc, char *argv [])
zmq::context_t ctx (1, 1);
zmq::socket_t s (ctx, ZMQ_REQ);
zmq::socket_t s (ctx, ZMQ_P2P);
s.connect (connect_to);
for (int i = 0; i != message_count; i++) {
......
......@@ -35,7 +35,7 @@ class local_thr
org.zmq.Context ctx = new org.zmq.Context (1, 1);
org.zmq.Socket s = new org.zmq.Socket (ctx, org.zmq.Socket.SUB);
org.zmq.Socket s = new org.zmq.Socket (ctx, org.zmq.Socket.P2P);
s.bind (bindTo);
byte [] data = s.recv (0);
......
......@@ -36,7 +36,7 @@ class remote_thr
org.zmq.Context ctx = new org.zmq.Context (1, 1);
org.zmq.Socket s = new org.zmq.Socket (ctx, org.zmq.Socket.PUB);
org.zmq.Socket s = new org.zmq.Socket (ctx, org.zmq.Socket.P2P);
s.connect (connectTo);
byte msg [] = new byte [messageSize];
......
......@@ -28,7 +28,7 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
s = Socket.new(ctx, SUB);
s = Socket.new(ctx, P2P);
s.bind(bind_to);
msg = s.recv(0)
......
......@@ -28,7 +28,7 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
s = Socket.new(ctx, PUB);
s = Socket.new(ctx, P2P);
s.connect(connect_to);
msg = "#{'0'*message_size}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment