Basic networking implemented, currently non functional

This commit is contained in:
2019-11-19 14:48:12 -06:00
parent b17842ab75
commit 82db9dd14d
14 changed files with 283 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
class IMICRTS
class Networking
class Connection
def initialize(director:, hostname:, port:)
@director = director
@hostname = hostname
@port = port
@client = Networking::Client.new(TCPSocket.new(@hostname, @port))
end
def connected?
@client.connected?
end
def update
@client.update
end
def close
@client.close
end
end
end
end