teeworlds_network/lib/net_addr.rb
ChillerDragon 6c005497d4 Layout server control msg structure
Thus closed #5
By deciding to support server as well.

This is rebranding from teeworlds-client to teeworlds_network
And thus also including a bunch of file renames
2022-11-09 08:56:18 +01:00

15 lines
180 B
Ruby

# frozen_string_literal: true
class NetAddr
attr_accessor :ip, :port
def initialize(ip, port)
@ip = ip
@port = port
end
def to_s
"#{@ip}:#{@port}"
end
end