Class: EZMQ::Pair
Overview
Pair sockets are meant to operate in pairs, as the name implies. They are
bi-directional, with a one-to-one relationship between endpoints. Either
end can send or receive messages.
Instance Attribute Summary
Attributes inherited from Socket
#context, #decode, #encode, #socket
Instance Method Summary (collapse)
-
- (Pair) initialize(mode, **options)
constructor
Creates a new Pair socket.
Methods inherited from Socket
#connect, #listen, #receive, #send
Constructor Details
- (Pair) initialize(mode, **options)
Creates a new Pair socket.
18 19 20 21 |
# File 'lib/ezmq/pair.rb', line 18 def initialize(mode, **) fail ArgumentError unless %i(bind connect).include? mode super mode, ZMQ::PAIR, end |