Sha256: 0e6229a550ed4fd4c349547df002310693a3fcc0b44daf9e2bee71d9efa4b69e

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

module PipeRpc
  class Hub
    def initialize(args)
      @channel = args[:input]
      @socket = Socket.new(self, args)
      @requests = Requests.new(self)
      @servers = Servers.new
      @clients = Clients.new(self)
      @transport_mapper = TransportMapper.new(self)
    end

    attr_reader :channel, :servers, :clients, :requests, :socket, :transport_mapper

    def handle_message
      Message.new(self, @socket.read).handle
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pipe_rpc-2.4.0 lib/pipe_rpc/hub.rb