Added Logger, added TACNET test server, networking now seems to work(heartbeats are sent and received)

This commit is contained in:
2020-06-07 21:23:16 -05:00
parent c694d29050
commit 95209ded73
10 changed files with 128 additions and 40 deletions

View File

@@ -12,10 +12,9 @@ module TAC
end
def connect(hostname = DEFAULT_HOSTNAME, port = DEFAULT_PORT, error_callback = proc {})
return if @connection && @connect.connected?
return if @connection && @connection.connected?
@connection = Connection.new(hostname, port)
puts "Connecting..."
@connection.connect(error_callback)
end
end