Module: MessQ::Server
- Defined in:
- lib/messQ/server.rb
Class Method Summary collapse
Class Method Details
.start ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/messQ/server.rb', line 6 def self.start begin webserver = TCPServer.new(MessQ.host, MessQ.port) MessQ::Verbose.logme "messQ has been started at #{MessQ.host}:#{MessQ.port}" while (session = webserver.accept) MessQ::Session.handler session end rescue MessQ::Verbose.logme "messQ failed starting at #{MessQ.host}:#{MessQ.port}." end end |