-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
41 lines (33 loc) · 846 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Threading;
namespace Server
{
class Program
{
private static Thread threadConsole;
private static bool consoleRunning;
static void Main(string[] args)
{
threadConsole = new Thread(new ThreadStart(ConsoleThread));
threadConsole.Start();
Globals.general.InitServer();
}
private static void ConsoleThread()
{
string line;
consoleRunning = true;
while (consoleRunning)
{
line = Console.ReadLine();
if (String.IsNullOrWhiteSpace(line))
{
consoleRunning = false;
return;
}
else
{
}
}
}
}
}