TcpClient tcpClient = new TcpClient()
Socket socket = tcpClient.Client)
方案2
Socket Server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
IPEndPoint server_ip = new IPEndPoint(IPAddress.Parse(client.ip), client.port)
Server.Connect(server_ip)
https://dotblogs.com.tw/kevintan1983/archive/2010/10/15/18348.aspx
沒有留言:
張貼留言