//-----------这是服务端 TcpListener------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;
namespace ConsoleApplication15
{
class Program
{
static void Main(string[] args)
{
//IPEndPoint IPEPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"),8888);
//TcpListener listener = new TcpListener(IPEPoint);
TcpListener listener = new TcpListener(IPAddress.Parse("127.0.0.1"), 8888);
listener.Start();
Console.WriteLine("启动监听成功");
TcpClient tcpClient = li