summaryrefslogtreecommitdiff
path: root/perf/ruby/remote_thr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'perf/ruby/remote_thr.rb')
-rw-r--r--perf/ruby/remote_thr.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/perf/ruby/remote_thr.rb b/perf/ruby/remote_thr.rb
index 8d98848..ef93961 100644
--- a/perf/ruby/remote_thr.rb
+++ b/perf/ruby/remote_thr.rb
@@ -28,7 +28,11 @@ message_size = ARGV[1].to_i
message_count = ARGV[2].to_i
ctx = Context.new(1, 1)
-s = Socket.new(ctx, P2P);
+s = Socket.new(ctx, PUB);
+
+# Add your socket options here.
+# For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
+
s.connect(connect_to);
msg = "#{'0'*message_size}"