Module: MaZMQ
- Defined in:
- lib/ma-zmq.rb,
lib/ma-zmq/pull.rb,
lib/ma-zmq/push.rb,
lib/ma-zmq/proxy.rb,
lib/ma-zmq/reply.rb,
lib/ma-zmq/request.rb,
lib/ma-zmq/proxy/backend.rb,
lib/ma-zmq/proxy/balancer.rb,
lib/ma-zmq/socket_handler.rb,
lib/ma-zmq/connection_handler.rb
Defined Under Namespace
Classes: ConnectionHandler, Proxy, Pull, Push, Reply, Request, SocketHandler
Constant Summary
collapse
- @@context =
nil
Class Method Summary
collapse
Class Method Details
.context ⇒ Object
19
20
21
22
23
|
# File 'lib/ma-zmq.rb', line 19
def self.context
@@context ||= ZMQ::Context.new
@@context
end
|
.terminate ⇒ Object
25
26
27
|
# File 'lib/ma-zmq.rb', line 25
def self.terminate
@@context.terminate if @@context
end
|