module Spyglass
class Server
include Singleton
include Logging
def startmodule Spyglass
class Server
include Singleton
include Logging
def startOpens the main listening socket for the server. Now the server is responsive to incoming connections.
sock = TCPServer.open(Config.host, Config.port)
out "Listening on port #{Config.host}:#{Config.port}"
Lookout.instance.start(sock)
end
end
end