Class: RStyx::Server::TCPServer

Inherits:
Server
  • Object
show all
Defined in:
lib/rstyx/server.rb

Overview

class Server

Instance Method Summary collapse

Methods inherited from Server

#run

Constructor Details

#initialize(config) ⇒ TCPServer

Create a new TCP-based server. In addition to the options described in the Server superclass, the following further options are also available:

:bindaddr

The address that the Styx server should listen on

:port

The port that the Styx server should listen on



1035
1036
1037
1038
1039
# File 'lib/rstyx/server.rb', line 1035

def initialize(config)
  @bindaddr = config[:bindaddr]
  @port = config[:port]
  super(config)
end