class EZMQ::Pair
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.
Public Class Methods
new(mode, **options)
click to toggle source
Creates a new Pair
socket.
@param [:bind, :connect] mode a mode for the socket. @param [Hash] options optional parameters. @see EZMQ::Socket
EZMQ::Socket
for optional parameters.
@return [Pair] a new instance of Pair
.
Calls superclass method
EZMQ::Socket::new
# File lib/ezmq/pair.rb, line 18 def initialize(mode, **options) fail ArgumentError unless %i(bind connect).include? mode super mode, ZMQ::PAIR, options end