Commits

Martin Sustrik committed 789e6d2

P2P renamed to PAIR

  • Participants
  • Parent commits 7272bf1

Comments (0)

Files changed (2)

File perf/local_lat.rb

 			
 ctx = ZMQ::Context.new(1, 1, 0)
 s = ctx.socket(ZMQ::REP);
+s.setsockopt(ZMQ::HWM, 100);
 s.bind(bind_to);
 
 for i in 0...roundtrip_count do
 
     rb_define_const (zmq_module, "NOBLOCK", INT2NUM (ZMQ_NOBLOCK));
 
+    //  TODO: P2P is to be removed.
     rb_define_const (zmq_module, "P2P", INT2NUM (ZMQ_P2P));
+    rb_define_const (zmq_module, "PAIR", INT2NUM (ZMQ_PAIR));
     rb_define_const (zmq_module, "SUB", INT2NUM (ZMQ_SUB));
     rb_define_const (zmq_module, "PUB", INT2NUM (ZMQ_PUB));
     rb_define_const (zmq_module, "REQ", INT2NUM (ZMQ_REQ));