Class: CZTop::Socket::PAIR
- Inherits:
-
CZTop::Socket
- Object
- CZTop::Socket
- CZTop::Socket::PAIR
- Defined in:
- lib/cztop/socket/types.rb
Overview
Pair socket for inter-thread communication.
Constant Summary
Constants inherited from CZTop::Socket
Constants included from CZTop::SendReceiveMethods
CZTop::SendReceiveMethods::FD_TIMEOUT, CZTop::SendReceiveMethods::JIFFY
Instance Attribute Summary
Attributes inherited from CZTop::Socket
Attributes included from HasFFIDelegate
Instance Method Summary collapse
-
#initialize(endpoints = nil) ⇒ PAIR
constructor
A new instance of PAIR.
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
#<<, #read_timeout, #receive, #wait_for_fd_signal, #wait_writable, #write_timeout
Methods included from ZsockOptions
#fd, #options, #readable?, #to_io, #writable?
Methods included from HasFFIDelegate
#attach_ffi_delegate, #from_ffi_delegate, raise_zmq_err, #to_ptr
Constructor Details
#initialize(endpoints = nil) ⇒ PAIR
Returns a new instance of PAIR.
272 273 274 275 276 |
# File 'lib/cztop/socket/types.rb', line 272 def initialize(endpoints = nil) super attach_ffi_delegate(Zsock.new_pair(endpoints)) end |