/[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.15 by mkoch, Mon Nov 18 11:26:03 2002 UTC revision 1.16 by mkoch, Thu Dec 19 12:21:58 2002 UTC
# Line 151  public class ServerSocket Line 151  public class ServerSocket
151      throws IOException      throws IOException
152    {    {
153      this();      this();
154    
155      if (impl == null)      if (impl == null)
156        throw new IOException("Cannot initialize Socket implementation");        throw new IOException("Cannot initialize Socket implementation");
157    
# Line 181  public class ServerSocket Line 182  public class ServerSocket
182    public void bind (SocketAddress endpoint)    public void bind (SocketAddress endpoint)
183      throws IOException      throws IOException
184    {    {
185      if (impl == null)      bind (endpoint, 50);
       throw new IOException ("Cannot initialize Socket implementation");  
   
     if (! (endpoint instanceof InetSocketAddress))  
       throw new IllegalArgumentException ("Address type not supported");  
   
     InetSocketAddress tmp = (InetSocketAddress) endpoint;  
       
     SecurityManager s = System.getSecurityManager ();  
     if (s != null)  
       s.checkListen (tmp.getPort ());  
   
     impl.bind (tmp.getAddress (), tmp.getPort ());  
186    }    }
187    
188    /**    /**

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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