Ejemplo n.º 1
0
        public void CreateServer()
        {
            try
            {
                bool bResult = Setup(new RootConfig(), m_Config, logFactory: new ConsoleLogFactory());

                if (bResult == false)
                {
                    Console.WriteLine("[ERROR] 서버 네트워크 설정 실패 ㅠㅠ");
                    return;
                }

                MainLogger = base.Logger;

                RegistHandler();

                CounterTh = new Thread(EchoCounter);
                CounterTh.Start();

                MainLogger.Info($"[{DateTime.Now}] 서버 생성 성공");
            }
            catch (Exception ex)
            {
                MainLogger.Error($"서버 생성 실패: {ex.ToString()}");
            }
        }
Ejemplo n.º 2
0
        public void CreateServer()
        {
            try
            {
                bool bResult = Setup(new RootConfig(), m_Config, logFactory: new ConsoleLogFactory());

                if (bResult == false)
                {
                    Console.WriteLine("[ERROR] 서버 네트워크 설정 실패 ㅜㅜ");
                    return;
                }

                MainLogger = base.Logger;

                RegistHandler();
                MainLogger.Info("서버 생성 성공");
            }
            catch (Exception ex)
            {
                MainLogger.Error($"서버 생성 실패 : {ex.ToString()}");
            }
        }