/[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.17 by mkoch, Sat Dec 21 11:42:37 2002 UTC revision 1.18 by rupp, Wed Apr 30 14:10:31 2003 UTC
# Line 164  public class ServerSocket Line 164  public class ServerSocket
164      if (bindAddr == null)      if (bindAddr == null)
165        bindAddr = InetAddress.ANY_IF;        bindAddr = InetAddress.ANY_IF;
166    
167        // create socket
168      impl.create(true);      impl.create(true);
169      impl.bind(bindAddr, port);  
170      impl.listen(backlog);      // bind to address/port
171        try {
172          impl.bind(bindAddr, port);
173        } catch (IOException exception) {
174          impl.close();
175          throw exception;
176        } catch (RuntimeException exception) {
177          impl.close();
178          throw exception;
179        } catch (Error error) {
180          impl.close();
181          throw error;
182        }
183    
184        // listen on socket
185        try {
186          impl.listen(backlog);
187        } catch (IOException exception) {
188          impl.close();
189          throw exception;
190        } catch (RuntimeException exception) {
191          impl.close();
192          throw exception;
193        } catch (Error error) {
194          impl.close();
195          throw error;
196        }
197    }    }
198    
199    /**    /**

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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