Parent

Methods

Included Modules

Files

ZMQ::Socket::Pub

Constants

TYPE_STR

ZMQ::Socket::Pub

A socket of type ZMQ::Socket::Pub is used by a publisher to distribute data. Messages sent are distributed in a fan out fashion to all connected peers. The ZMQ::Socket#recv function is not implemented for this socket type.

When a ZMQ::Socket::Pub socket enters an exceptional state due to having reached the high water mark for a subscriber, then any messages that would be sent to the subscriber in question shall instead be dropped until the exceptional state ends. The ZMQ::Socket#send function shall never block for this socket type.

Summary of ZMQ::Socket::Pub characteristics

Compatible peer sockets

ZMQ::Socket::Sub

Direction

Unidirectional

Send/receive pattern

Send only

Incoming routing strategy

N/A

Outgoing routing strategy

Fan out

ZMQ::Socket#hwm option action

Drop

Public Instance Methods

type() click to toggle source
# File lib/zmq/socket/pub.rb, line 24
def type
  ZMQ::PUB
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.