Class: ZMQ::Socket::Sub
- Inherits:
-
ZMQ::Socket
- Object
- ZMQ::Socket
- ZMQ::Socket::Sub
- Includes:
- DownstreamSocket
- Defined in:
- lib/zmq/socket/sub.rb,
ext/rbczmq/socket.c
Constant Summary collapse
- TYPE_STR =
ZMQ::Socket::Sub
A socket of type ZMQ::Socket::Sub is used by a subscriber to subscribe to data distributed by a publisher. Initially a ZMQ::Socket::Sub socket is not subscribed to any messages, use ZMQ::Socket#subscribe to specify which messages to subscribe to. The ZMQ::Socket#send function is not implemented for this socket type.
Summary of ZMQ::Socket::Sub characteristics
- Compatible peer sockets
-
ZMQ::Socket::Pub
- Direction
-
Unidirectional
- Send/receive pattern
-
Receive only
- Incoming routing strategy
-
Fair-queued
- Outgoing routing strategy
-
N/A
- ZMQ::Socket#hwm option action
-
Drop
"SUB"
Constants inherited from ZMQ::Socket
BOUND, CONNECTED, PENDING, PROTO_REXP
Instance Method Summary collapse
Methods included from DownstreamSocket
Methods inherited from ZMQ::Socket
#affinity, #affinity=, #backlog, #backlog=, #bind, #close, #connect, #endpoint, #events, #fd, handle_fsm_errors, #hwm, #hwm=, #identity=, #linger, #linger=, #mcast_loop=, #mcast_loop?, #poll_readable?, #poll_writable?, #rate, #rate=, #rcvbuf, #rcvbuf=, #rcvmore?, #rcvtimeo, #rcvtimeo=, #readable?, #real_bind, #real_connect, #reconnect_ivl, #reconnect_ivl=, #reconnect_ivl_max, #reconnect_ivl_max=, #recovery_ivl, #recovery_ivl=, #recovery_ivl_msec, #recovery_ivl_msec=, #recv, #recv_frame, #recv_frame_nonblock, #recv_message, #recv_nonblock, #send, #send_frame, #send_message, #sendm, #sndbuf, #sndbuf=, #sndtimeo, #sndtimeo=, #state, #subscribe, #swap, #swap=, #to_s, #type_str, #unsubscribe, unsupported_api, #verbose=, #writable?
Instance Method Details
#type ⇒ Object
22 23 24 |
# File 'lib/zmq/socket/sub.rb', line 22 def type ZMQ::SUB end |