mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Stubbed out files for networking
This commit is contained in:
26
lib/networking/server.rb
Normal file
26
lib/networking/server.rb
Normal 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
|
||||
Reference in New Issue
Block a user