Basic TCP server
This commit is contained in:
23
authorizer/Program.cs
Normal file
23
authorizer/Program.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace authorizer
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static AuthServer server;
|
||||
static void Main(string[] args)
|
||||
{
|
||||
server = new AuthServer();
|
||||
|
||||
server.Start();
|
||||
|
||||
string input;
|
||||
do
|
||||
{
|
||||
input = Console.ReadLine();
|
||||
}
|
||||
while(input != "stop");
|
||||
server.Stop();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user