lib/maxcube/network/tcp/sample_server.rb in maxcube-client-0.4.1 vs lib/maxcube/network/tcp/sample_server.rb in maxcube-client-0.5.0
- old
+ new
@@ -1,9 +1,10 @@
require 'maxcube/network/tcp'
module MaxCube
module Network
module TCP
+ # Simple TCP server for Cube protocol testing purposes.
class SampleServer
def initialize(port = PORT)
@port = port
@server = TCPServer.new(port)