Class: EZMQ::Context
- Inherits:
-
ZMQ::Context
- Object
- ZMQ::Context
- EZMQ::Context
- Defined in:
- lib/ezmq/context.rb
Overview
Wrapper class to simplify 0MQ sockets.
Instance Method Summary (collapse)
-
- (Context) initialize
constructor
Creates a 0MQ context.
Constructor Details
- (Context) initialize
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 / protocol.
Any sockets that need to communicate in-process must share a context.
18 19 20 |
# File 'lib/ezmq/context.rb', line 18 def initialize super end |