 |
Java 網路程式設計-- TCP - 陳鍾誠的網站
2010年11月7日 ... 執行方法: java TcpServer public class TcpServer { public static int port = 20; //
連接埠 public ... 建立TCP 伺服器。 while (true) { // 不斷的接收處理輸入訊息。 ...
Socket client = new Socket(args[0], port); // 根據args[0] 的TCP Socket.
ccckmit.wikidot.com |
 |