From 93e70ee583489034c9f3b92fb87b374707afd5d5 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 10 Sep 2009 15:20:54 +0200 Subject: throughput tests use P2P sockets consistently --- perf/java/local_thr.java | 2 +- perf/java/remote_thr.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'perf/java') diff --git a/perf/java/local_thr.java b/perf/java/local_thr.java index 4a03f1d..f5d3718 100644 --- a/perf/java/local_thr.java +++ b/perf/java/local_thr.java @@ -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); diff --git a/perf/java/remote_thr.java b/perf/java/remote_thr.java index 25406ea..f505600 100644 --- a/perf/java/remote_thr.java +++ b/perf/java/remote_thr.java @@ -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]; -- cgit v1.2.3