summaryrefslogtreecommitdiff
path: root/perf/java
diff options
context:
space:
mode:
Diffstat (limited to 'perf/java')
-rw-r--r--perf/java/local_thr.java2
-rw-r--r--perf/java/remote_thr.java2
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];