Socket Communications Model
The left is a server-side server socket, the right is the client.
Socket implementation steps
For details, see the API documentation
ServerSocket
int port //代表端口号 int backlog //请求进入连接队列的最大长度 InetAddress bindAddr //服务器将绑定到的本地InetAddress
The following summary affix a method of ServerSocket
Socket
Paste the following summary of a method of Socket: