Method: ZMQMachine::Socket::Pair#initialize

Defined in:
lib/zm/sockets/pair.rb

#initialize(context, handler) ⇒ Pair

Returns a new instance of Pair.



44
45
46
47
48
49
50
# File 'lib/zm/sockets/pair.rb', line 44

def initialize context, handler
  @poll_options = ZMQ::POLLIN | ZMQ::POLLOUT
  @kind = :pair

  super
  @state = :ready
end