diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-10 15:20:54 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-10 15:20:54 +0200 |
commit | 93e70ee583489034c9f3b92fb87b374707afd5d5 (patch) | |
tree | ca95d3ca3eb8f2b2d6208d0a2f4d1046fce0b8d0 /perf/java | |
parent | 95944551be93665fe4dcadbe00168da553b7d82f (diff) |
throughput tests use P2P sockets consistently
Diffstat (limited to 'perf/java')
-rw-r--r-- | perf/java/local_thr.java | 2 | ||||
-rw-r--r-- | perf/java/remote_thr.java | 2 |
2 files changed, 2 insertions, 2 deletions
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]; |