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

Diff of /classpath/java/net/DatagramSocket.java

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

revision 1.21 by mkoch, Fri Mar 14 11:57:32 2003 UTC revision 1.22 by rupp, Wed Apr 30 14:10:31 2003 UTC
# Line 181  public class DatagramSocket Line 181  public class DatagramSocket
181      impl = new PlainDatagramSocketImpl();      impl = new PlainDatagramSocketImpl();
182      impl.create();      impl.create();
183    
184      if (address != null)      if (address != null) {
185        {        try {
186          local_addr = tmp.getAddress ();          local_addr = tmp.getAddress ();
187          impl.bind(tmp.getPort (), tmp.getAddress ());          impl.bind(tmp.getPort (), tmp.getAddress ());
188          } catch (SocketException exception) {
189            impl.close();
190            throw exception;
191          } catch (RuntimeException exception) {
192            impl.close();
193            throw exception;
194          } catch (Error error) {
195            impl.close();
196            throw error;
197        }        }
198        }
199    }    }
200        
201    /**    /**

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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