Parent

Methods

Files

ZMQ::Context

Public Instance Methods

bind(sock_type, endpoint) click to toggle source

Sugaring for spawning a new socket and bind to a given endpoint

ctx.bind(:PUB, “tcp://127.0.0.1:5000”)

# File lib/zmq/context.rb, line 16
def bind(sock_type, endpoint)
  s = socket(sock_type)
  s.bind(endpoint)
  s
end
connect(sock_type, endpoint) click to toggle source

Sugaring for spawning a new socket and connect to a given endpoint

ctx.connect(:SUB, “tcp://127.0.0.1:5000”)

# File lib/zmq/context.rb, line 26
def connect(sock_type, endpoint)
  s = socket(sock_type)
  s.connect(endpoint)
  s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.