Class: Quark::Server::TcpServer
- Inherits:
-
BaseServer
- Object
- BaseServer
- Quark::Server::TcpServer
- Defined in:
- lib/quark/servers/tcp.rb
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ TcpServer
constructor
A new instance of TcpServer.
- #run ⇒ Object
Methods inherited from BaseServer
Constructor Details
Instance Method Details
#run ⇒ Object
11 12 13 14 |
# File 'lib/quark/servers/tcp.rb', line 11 def run() puts "Starting #{self.class.to_s} server on #{@_options.get(:address)}:#{@_options.get(:port)}..." EM::start_server(@_options.get(:address, '127.0.0.1'), @_options.get(:port, 12161).to_i, Quark::CommandProcessor) end |