Class: ZMQ::Context
- Inherits:
-
orgorg.jeromqorg.jeromq.ZMQorg.jeromq.ZMQ::Context
- Object
- orgorg.jeromqorg.jeromq.ZMQorg.jeromq.ZMQ::Context
- ZMQ::Context
- Defined in:
- lib/jrzmq/zmq_classes.rb
Instance Method Summary collapse
-
#initialize(ioThreads = java.lang.Runtime.getRuntime.availableProcessors) ⇒ Context
constructor
A new instance of Context.
- #socket(type) ⇒ Object
Constructor Details
#initialize(ioThreads = java.lang.Runtime.getRuntime.availableProcessors) ⇒ Context
Returns a new instance of Context.
28 29 30 |
# File 'lib/jrzmq/zmq_classes.rb', line 28 def initialize(ioThreads=java.lang.Runtime.getRuntime.availableProcessors) super(ioThreads) end |
Instance Method Details
#socket(type) ⇒ Object
32 33 34 |
# File 'lib/jrzmq/zmq_classes.rb', line 32 def socket(type) Socket.new(self, type) end |