Class: DRb::HTTP0::ServerSide
- Inherits:
-
Object
- Object
- DRb::HTTP0::ServerSide
- Defined in:
- lib/drb/http0serv.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #alive? ⇒ Boolean
- #close ⇒ Object
-
#initialize(callback, config) ⇒ ServerSide
constructor
A new instance of ServerSide.
- #recv_request ⇒ Object
- #send_reply(succ, result) ⇒ Object
Constructor Details
#initialize(callback, config) ⇒ ServerSide
Returns a new instance of ServerSide.
91 92 93 94 95 96 97 |
# File 'lib/drb/http0serv.rb', line 91 def initialize(callback, config) @callback = callback @config = config @msg = DRbMessage.new(@config) @req_stream = StrStream.new(@callback.req_body) @uri = @callback.uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
89 90 91 |
# File 'lib/drb/http0serv.rb', line 89 def uri @uri end |
Instance Method Details
#alive? ⇒ Boolean
104 |
# File 'lib/drb/http0serv.rb', line 104 def alive?; false; end |
#close ⇒ Object
99 100 101 102 |
# File 'lib/drb/http0serv.rb', line 99 def close @callback.close if @callback @callback = nil end |
#recv_request ⇒ Object
106 107 108 109 110 111 112 113 |
# File 'lib/drb/http0serv.rb', line 106 def recv_request begin @msg.recv_request(@req_stream) rescue close raise $! end end |