Class: RStyx::Server::TCPServer
Overview
class Server
Instance Method Summary collapse
-
#initialize(config) ⇒ TCPServer
constructor
Create a new TCP-based server.
Methods inherited from Server
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 |