Stubbed out files for networking

This commit is contained in:
2020-03-26 14:25:55 -05:00
parent bb21de2e2a
commit 75185425b6
14 changed files with 194 additions and 1 deletions

26
lib/networking/server.rb Normal file
View File

@@ -0,0 +1,26 @@
class IMICFPS
module Networking
MAX_CLIENTS = 32
class Server
attr_reader :hostname, :port, :max_clients, :clients
def initialize(hostname:, port:, max_clients: MAX_CLIENTS)
@hostname = hostname
@port = port
@max_clients = max_clients
@clients = []
@socket = nil
end
def bind
end
def broadcast(packet)
end
def close
end
end
end
end