下列程式碼範例程式建立連接至伺服器的用戶端。 ... bytes = new byte[1024]; // Connect to a remote device. try { // Establish the remote endpoint for the socket.
msdn.microsoft.com