mirror of
https://gitlab.com/Syroot/Worms.git
synced 2025-04-10 19:30:06 +03:00
33 lines
887 B
C#
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}");
|
|
}
|
|
}
|
|
}
|
|
}
|