//-----------这是服务端 TcpListener------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
namespace ConsoleApplication15
{
class Program
{
byte[] data = new byte[1024];
public void printReceiveMsg(object Obj_tcpClient)
{
TcpClient tcpClient = (TcpClient)Obj_tcpClient;
NetworkStream stream = tcpClient.GetStream();
while (true)
{
if (stream.DataAvailable)
{
int length