mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
25 lines
444 B
Ruby
25 lines
444 B
Ruby
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 |