2018-12-25 17:08:43 +01:00

33 lines
887 B
C#

using System;
using System.Text;
namespace Syroot.Worms.OnlineWorms.Server
{
/// <summary>
/// Represents the main class of the application containing the entry point.
/// </summary>
internal class Program
{
// ---- CONSTRUCTORS & DESTRUCTOR ------------------------------------------------------------------------------
static Program()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}
// ---- METHODS (PRIVATE) --------------------------------------------------------------------------------------
private static void Main(string[] args)
{
try
{
new Server().Listen(17022);
}
catch (Exception ex)
{
Console.WriteLine($"Unhandled exception: {ex}");
}
}
}
}