Module: ZMQ::DownstreamSocket

Included in:
Socket::Pull, Socket::Sub
Defined in:
lib/zmq/socket.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(sock) ⇒ Object

An interface for sockets that can only receive (read) data

Behavior

Disabled methods

ZMQ::Socket#bind, ZMQ::Socket#send, ZMQ::Socket#sendm, ZMQ::Socket#send_frame, ZMQ::Socket#send_message

Socket types

ZMQ::Socket::Pull, ZMQ::Socket::Sub


178
179
180
# File 'lib/zmq/socket.rb', line 178

def self.included(sock)
  sock.unsupported_api :send, :sendm, :send_frame, :send_message
end

Instance Method Details

#poll_writable?Boolean

Upstream sockets should never be polled for writable states

Returns:

  • (Boolean)

183
184
185
# File 'lib/zmq/socket.rb', line 183

def poll_writable?
  false
end