Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public ClientConnection(NetServer server)
 {
     Server = server;
     ClientID = ClientIDCounter;
     ClientIDCounter++;
 }