Class: CZTop::Socket::REQ

Inherits:
CZTop::Socket show all
Defined in:
lib/cztop/socket/types.rb

Overview

Request socket for the ZeroMQ Request-Reply Pattern.

Constant Summary

Constants inherited from CZTop::Socket

TypeNames

Instance Attribute Summary

Attributes inherited from CZTop::Socket

#last_tcp_port

Attributes included from HasFFIDelegate

#ffi_delegate

Instance Method Summary collapse

Methods inherited from CZTop::Socket

#CURVE_client!, #CURVE_server!, #bind, #close, #connect, #disconnect, #inspect, #last_endpoint, new_by_type, #unbind

Methods included from HasFFIDelegate::ClassMethods

#ffi_delegate, #from_ffi_delegate

Methods included from PolymorphicZsockMethods

#set_unbounded, #signal, #wait

Methods included from CZTop::SendReceiveMethods

#<<, #receive

Methods included from ZsockOptions

#fd, #options, #readable?, #writable?

Methods included from HasFFIDelegate

#attach_ffi_delegate, #from_ffi_delegate, #raise_zmq_err, raise_zmq_err, #to_ptr

Constructor Details

#initialize(endpoints = nil) ⇒ REQ

Returns a new instance of REQ

Parameters:

  • endpoints (String) (defaults to: nil)

    endpoints to connect to



74
75
76
# File 'lib/cztop/socket/types.rb', line 74

def initialize(endpoints = nil)
  attach_ffi_delegate(Zsock.new_req(endpoints))
end