/[classpath]/classpath/java/net/ServerSocket.java
ViewVC logotype

Diff of /classpath/java/net/ServerSocket.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37.2.4 by gnu_andrew, Tue Aug 2 20:12:23 2005 UTC revision 1.37.2.5 by gnu_andrew, Wed Nov 2 00:43:35 2005 UTC
# Line 316  public class ServerSocket Line 316  public class ServerSocket
316    {    {
317      SecurityManager sm = System.getSecurityManager();      SecurityManager sm = System.getSecurityManager();
318      if (sm != null)      if (sm != null)
319        sm.checkListen(impl.getLocalPort());        sm.checkAccept(impl.getInetAddress().getHostAddress(),
320                         impl.getLocalPort());
321    
322      Socket socket = new Socket();      Socket socket = new Socket();
323    
# Line 369  public class ServerSocket Line 370  public class ServerSocket
370    
371      impl.accept(socket.impl);      impl.accept(socket.impl);
372      socket.implCreated = true;      socket.implCreated = true;
373        socket.bound = true;
374    }    }
375    
376    /**    /**

Legend:
Removed from v.1.37.2.4  
changed lines
  Added in v.1.37.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26