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