mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 04:17:57 +01:00
added newly added socket options to all language bindings, P2P model changed to PUB/SUB for throughput tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user