Sha256: 487e32766eb07b93c447f0a51c8c784e81128398413a87c5837cb8e20bbf67b3

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

module ZMQ
  
  class Proxy
    
    def initialize(frontend, backend, capture = nil)
      @frontend = frontend.nil? ? nil : frontend.ptr
      @backend  = backend.nil?  ? nil : backend.ptr
      @capture  = capture.nil?  ? nil : capture.ptr
    end
    
    # Block the current thread with the event loop of the proxy
    def run
      LibZMQ.zmq_proxy @frontend, @backend, @capture
    end
    
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
0mq-0.2.1 lib/0mq/proxy.rb
0mq-0.2.0 lib/0mq/proxy.rb
0mq-0.1.2 lib/0mq/proxy.rb
0mq-0.1.1 lib/0mq/proxy.rb
0mq-0.1.0 lib/0mq/proxy.rb