mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
26 lines
446 B
Ruby
26 lines
446 B
Ruby
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 |