public ClientHandler(Socket cs)
        {
            clientSocket = cs;
            DDE_Client d_client = new DDE_Client();
            Thread     dc       = new Thread(d_client.Run);

            dc.Start(); // DDE 클라이언트 실행
        }
        public static void Main(string[] args)
        {
            if (args.Contains("debug"))
            {
                //맞으면 디버그 모드
                AllocConsole();
                IntPtr consoleWindow = GetConsoleWindow();
                Console.Title = "[DEBUG] DDE Relay Server";
            }

            // 중복 실행 방지
            bool  isNew;
            Mutex mutex = new Mutex(true, "DDE_Server", out isNew);

            if (isNew)
            {
                mutex.ReleaseMutex();
            }
            else
            {
                Environment.Exit(0);
            }

            try
            {
                using (DdeServer server = new MyServer("asirc_server")) // DDE 서버 실행
                {
                    DDE_Client d_client = new DDE_Client();
                    Thread     dc2      = new Thread(d_client.Run2);
                    dc2.Start(); // DDE 클라이언트 실행

                    IRC_Socket irc_socket = new IRC_Socket();
                    Thread     isocket    = new Thread(irc_socket.Run);
                    isocket.Start(); // 소켓 실행

                    server.Register();
                    while (true)
                    {
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Environment.Exit(0);
            }
        }