在学习客户端和服务器时,关于ServerSocket的相关内容
**ServerSocket详解在客户/服务器通信模式中,服务器端需要创建监听特定端口的ServerSocket,ServerSocket负责接收客户连接请求,并生成与客户端连接的Socket。1、构造ServerSocketServerSocket的构造方法有以下几种重载形式:ServerSocket()throws IOException ServerSocket(int port) throwsIOException ServerSocket(int port, int backlog)
转载
2020-07-01 01:26:03 ·
698 阅读 ·
0 评论