Sha256: bc5b220d8024b782af60f549d9c03853f07273eb8dc3c9275482bde55c248af0
Contents?: true
Size: 693 Bytes
Versions: 7
Compression:
Stored size: 693 Bytes
Contents
require 'ffi-rzmq' # Syntactic sugar for 0MQ, because Ruby shouldn't feel like C. module EZMQ # Wrapper class to simplify 0MQ sockets. class Context < ZMQ::Context # Creates a 0MQ context. # # Contexts are essentially resource containers or sandboxes for 0MQ. They # allow multiple sockets to share access to system resources, and an # entire context can be terminated, closing all sockets within it. # # Contexts are useful when dealing with the :inproc transport. # Any sockets that need to communicate in-process must share a context. # # @return [Context] a new instance of Context. # def initialize super end end end
Version data entries
7 entries across 7 versions & 1 rubygems