我有程序用java编写它等待端口上的连接
当我通过 nmap 扫描服务器时,程序停止(错误)
这是我的代码
SSLServerSocketFactory sslServerSocketfactory = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault();
sslServerSocket = (SSLServerSocket)sslServerSocketfactory.createServerSocket(intSSLport);
out = new PrintWriter(sslSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(sslSocket.getInputStream()));
String value = in.readLine();
感谢 jtahlborn ,,,, 我通过使用 try 和 catch 解决了 ,, 并让 catch 返回
sslSocket = (SSLSocket)sslServerSocket.accept()
再次