additions
This commit is contained in:
35
.history/desktop_global/Program_20251009100928.cs
Normal file
35
.history/desktop_global/Program_20251009100928.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user