| 7 | internal class Program |
| 8 | { |
| 9 | static void Main(string[] args) |
| 10 | { |
| 11 | const string listen_addr = "0.0.0.0"; |
| 12 | const int port = 5445; |
| 13 | |
| 14 | const string current_ver = "v1.0.0"; |
| 15 | |
| 16 | Console.Title = "UltimateAntiCheat Server " + current_ver; |
| 17 | |
| 18 | AnticheatServer server = new AnticheatServer(); |
| 19 | server.Start(listen_addr, port); |
| 20 | |
| 21 | Logger.Log("UACServer.log", "Server initialized: Press the Q key to stop the program..."); |
| 22 | |
| 23 | bool listening_input = true; |
| 24 | |
| 25 | while(listening_input) |
| 26 | { |
| 27 | ConsoleKeyInfo key = Console.ReadKey(); |
| 28 | if (key.KeyChar == 'q') |
| 29 | { |
| 30 | listening_input = false; |
| 31 | server.Stop(); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | Logger.Log("UACServer.log", "Finished listening..."); |
| 36 | } |
| 37 | } |
| 38 | } |