This commit is contained in:
xixu-me committed 2024-07-01 22:32:58 +08:00
1 parent 2c81527bf0
commit 142fce31c0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ public class Server {
// 创建服务器
int port = 9999;
ServerSocket server = new ServerSocket(port);
System.out.println("服务器正在1234端口侦听客户端请求");
System.out.println("服务器正在 9999 端口侦听客户端请求");
// 循环等待客户端请求
while (true) {
Socket socket = server.accept();