diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-16 14:03:42 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-16 14:03:42 +0200 |
commit | a71d00288008b7ed1dc91b6ad3d5fdf25a5e683e (patch) | |
tree | c4c1dde7b4cb638c88fc92647bdae836ab8216ea /perf/ruby/local_thr.rb | |
parent | 4631fde7e385ea31e85f41290614afb9bda391c9 (diff) | |
parent | 7a5db6041f4f11ed502fa7446da900509dedb00f (diff) |
Merge branch 'master' of git@github.com:sustrik/zeromq2
Diffstat (limited to 'perf/ruby/local_thr.rb')
-rw-r--r-- | perf/ruby/local_thr.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perf/ruby/local_thr.rb b/perf/ruby/local_thr.rb index 117e54b..db14cf2 100644 --- a/perf/ruby/local_thr.rb +++ b/perf/ruby/local_thr.rb @@ -28,7 +28,12 @@ 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, SUB); +s.setsockopt (SUBSCRIBE, "*"); + +# Add your socket options here. +# For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM. + s.bind(bind_to); msg = s.recv(0) |