public Program(string host, int port) { Server = new NetServer(); Server.OnServerLogEvent += OnLogEvent; Server.OnClientInputEvent += OnClientInput; Server.OnClientConnection += OnClientConnection; Server.OnClientDisconnect += OnClientDisconnect; Server.StartListen(host, port); Console.ReadKey(); }
public ClientConnection(NetServer server) { Server = server; ClientID = ClientIDCounter; ClientIDCounter++; }