//接收部分 Listener.Listen(10); Socket hostSocket = Listener.Accept(); byte[] buf = new byte[1024]; while (true) { hostSocket.Receive(buf); textBox1.AppendText(Encoding.ASCII.GetString(buf)); } hostSocket.Close();