Class: Pione::DRbPatch::RequestLooper

Inherits:
Object
  • Object
show all
Defined in:
lib/pione/patch/drb-patch.rb

Overview

RequestLooper is a receiver of client request. This is different from standard DRb's +main_loop+ at the point that this method doesn't need to wait finishing evaluation of request and reply.

Instance Method Summary collapse

Constructor Details

#initialize(server) ⇒ RequestLooper

Returns a new instance of RequestLooper.



441
442
443
# File 'lib/pione/patch/drb-patch.rb', line 441

def initialize(server)
  @server = server
end

Instance Method Details

#start(client) ⇒ Object



445
446
447
# File 'lib/pione/patch/drb-patch.rb', line 445

def start(client)
  loop {handle_client_request(client)}
end