Module: ZMQ::UpstreamSocket

Included in:
Socket::Pub, Socket::Push
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 send (write) data

Behavior

Disabled methods

ZMQ::Socket#connect, ZMQ::Socket#recv, ZMQ::Socket#recv_nonblock, ZMQ::Socket#recv_frame, ZMQ::Socket#recv_frame_nonblock, ZMQ::Socket#recv_message

Socket types

ZMQ::Socket::Push, ZMQ::Socket::Pub


197
198
199
# File 'lib/zmq/socket.rb', line 197

def self.included(sock)
  sock.unsupported_api :recv, :recv_nonblock, :recv_frame, :recv_frame_nonblock, :recv_message
end

Instance Method Details

#poll_readable?Boolean

Upstream sockets should never be polled for readable states

Returns:

  • (Boolean)

202
203
204
# File 'lib/zmq/socket.rb', line 202

def poll_readable?
  false
end