static void Main() { Server = new BasicTcpServer("*", 10013); Server.Events.ClientConnected += OnClientConnected; Server.Events.ClientDisconnected += OnClientDisconnected; Server.Events.DataReceived += OnDataRecieved; Server.Events.ServerLog += OnServerLog; Server.Start(); Console.ReadKey(); }
static void Main() { Server = new BasicTcpServer("*", 11113); Server.Events.ClientConnected += OnClientConnected; Server.Events.ClientDisconnected += OnClientDisconnected; Server.Events.DataReceived += OnDataReceived; Server.Events.ServerLog += OnServerLog; Server.Start(); ReadCmd(); }