先看一段代码,把服务端的backlog设置为5(默认为50)
public class Server {
public static void main(String[] args) throws Exception{
ServerSocket server=new ServerSocket(9999,5);
while (true){
}
}
先看一段代码,把服务端的backlog设置为5(默认为50)
public class Server {
public static void main(String[] args) throws Exception{
ServerSocket server=new ServerSocket(9999,5);
while (true){
}
}