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); } }
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()); } } }
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) { // } } }