예제 #1
0
파일: Program.cs 프로젝트: guogongjun/Blink
        static void Run()
        {
            while (!IsExit)
            {
                try
                {
                    BlinkLog.I("Server Socket Accept...");
                    Socket socket = mServer.Accept();
                    BlinkLog.V("New Client Socket.");

                    BlinkCallBack callback = new BlinkCallBack(socket);

                    BlinkConn conn = callback.Conn;
                    conn.GetResource().ClearAll();

                    BlinkLog.V("Socket To BlinkConn OK.");
                }
                catch (Exception)
                {
                    //
                }
            }
        }
예제 #2
0
        static void Run()
        {
            while (!IsExit)
            {
                try
                {
                    BlinkLog.I("Server Socket Accept...");
                    Socket socket = mServer.Accept();
                    BlinkLog.V("New Client Socket.");

                    BlinkCallBack callback = new BlinkCallBack(socket);

                    BlinkConn conn = callback.Conn;
                    conn.GetResource().ClearAll();

                    BlinkLog.V("Socket To BlinkConn OK.");
                }
                catch (Exception)
                {
                    //
                }
            }
        }