Class: FCSHD::Server
- Inherits:
-
Object
- Object
- FCSHD::Server
- Defined in:
- lib/fcshd/server.rb
Defined Under Namespace
Classes: Client
Constant Summary collapse
- PORT =
34345
Instance Method Summary collapse
-
#initialize(port, compiler, logger) ⇒ Server
constructor
A new instance of Server.
- #run! ⇒ Object
Constructor Details
#initialize(port, compiler, logger) ⇒ Server
Returns a new instance of Server.
7 8 9 10 11 |
# File 'lib/fcshd/server.rb', line 7 def initialize(port, compiler, logger) @server = TCPServer.new("localhost", port) @compiler = compiler @logger = logger end |