sm.checkListen(impl.getLocalPort());
sm.checkAccept(impl.getInetAddress().getHostAddress(), impl.getLocalPort());
  public Socket accept() throws IOException  {    SecurityManager sm = System.getSecurityManager();    if (sm != null)      sm.checkListen(impl.getLocalPort());    Socket socket = new Socket();    try      {	implAccept(socket);      }    catch (IOException e)      {	try	  {	    socket.close();	  }	catch (IOException e2)	  {	    // Ignore.	  }	throw e;      }    return socket;  }