Class: Secure::IServer
- Inherits:
-
GServer
- Object
- GServer
- Secure::IServer
- Defined in:
- lib/appswarm/secure_con.rb
Instance Method Summary collapse
-
#initialize(server, port, *args) ⇒ IServer
constructor
A new instance of IServer.
- #serve(io) ⇒ Object
Constructor Details
#initialize(server, port, *args) ⇒ IServer
Returns a new instance of IServer.
9 10 11 12 |
# File 'lib/appswarm/secure_con.rb', line 9 def initialize(server,port,*args) super(port,*args) @server=server end |
Instance Method Details
#serve(io) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/appswarm/secure_con.rb', line 14 def serve(io) begin c=Connection.new(io,@server) @server.addConnection(c) c.receiveLoop rescue Object=>e pp "SERVING EXCEPTION",e end end |