MCPcopy Create free account
hub / github.com/AlSch092/UltimateAntiCheat / Main

Method Main

Server/Program.cs:9–36  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

StartMethod · 0.80
LogMethod · 0.80
StopMethod · 0.80

Tested by

no test coverage detected