35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System;
|
|
using System.Threading;
|
|
|
|
namespace VideoReader
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("VideoReader Global Edition v1.0");
|
|
Console.WriteLine("===================================");
|
|
Console.WriteLine();
|
|
|
|
try
|
|
{
|
|
// Загружаем конфигурацию
|
|
var config = ServerConfig.LoadConfig();
|
|
Console.WriteLine($"Loaded server configuration: {config.ServerAddress}:{config.Port}");
|
|
|
|
// Создаем подключение (без GUI)
|
|
var socket = new InOutSocket();
|
|
Console.WriteLine("Socket initialized successfully");
|
|
|
|
Console.WriteLine("Press any key to exit...");
|
|
Console.ReadKey();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.WriteLine($"Error: {ex.Message}");
|
|
Console.WriteLine("Press any key to exit...");
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|
|
} |