c# tcp

  Socket s = null;
            IPEndPoint ipe = new IPEndPoint(IPAddress.Parse("192.168.1.3"), 999);
            Socket tempSocket =
                new Socket(ipe.AddressFamily, SocketType.Stream, ProtocolType.Tcp);

            tempSocket.Connect(ipe);

 

posted @ 2020-04-18 15:56  灰主流  阅读(141)  评论(0)    收藏  举报