示例#1
0
        static void SendWhlie()
        {
            while (true)
            {
                BlinkLog.V("===== Enter some str or drag file to send. =====");

                string str = Console.ReadLine();
                if (str == "E")
                {
                    return;
                }
                Send(str);
            }
        }
示例#2
0
 static void Run()
 {
     while (!IsExit)
     {
         try
         {
             BlinkLog.I("Server Socket Accept...");
             Socket socket = mServer.Accept();
             BlinkLog.V("New Client Socket.");
             BlinkConn conn = Utils.bindBlink(socket);
             conn.GetResource().ClearAll();
             mBlinkConn.Add(conn);
             BlinkLog.V("Socket To BlinkConn OK.");
         }
         catch (Exception e)
         {
             BlinkLog.E(e.ToString());
         }
     }
 }
示例#3
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)
                {
                    //
                }
            }
        }