Esempio n. 1
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)
                {
                    //
                }
            }
        }
Esempio n. 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)
                {
                    //
                }
            }
        }