private async Task <string> readLine() { SocketConnect.ReceiveBufferSize = BlockSize; var content = new StringBuilder(); var buffers = new byte[BlockSize]; while (true) { var i = SocketConnect.Receive(buffers); content.Append(Encoding.UTF8.GetString(buffers)); if (i < BlockSize) { break; } } Content = content.ToString(); content.Clear(); var args = Content.Split('\n'); if (args.Length > 2) { Content = args[args.Length - 2]; } else { Content = args[0]; } if (Content.Substring(3, 1).Equals("")) { return(await readLine()); } return(Content); }