DatagramSocket.java (DatagramSocket(int,InetAddress)): Handle null addresses.
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)): Handle null addresses. From-SVN: r32339
This commit is contained in:
parent
5a43052b1a
commit
c261e080ef
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-03-05 Warren Levy <warrenl@cygnus.com>
|
||||||
|
|
||||||
|
* java/net/DatagramSocket.java(DatagramSocket(int,InetAddress)):
|
||||||
|
Handle null addresses.
|
||||||
|
|
||||||
2000-03-04 Anthony Green <green@redhat.com>
|
2000-03-04 Anthony Green <green@redhat.com>
|
||||||
|
|
||||||
* configure.host (libgcj_flags): Define __NO_MATH_INLINES.
|
* configure.host (libgcj_flags): Define __NO_MATH_INLINES.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// DatagramSocket.java
|
// DatagramSocket.java
|
||||||
|
|
||||||
/* Copyright (C) 1999 Red Hat, Inc.
|
/* Copyright (C) 1999, 2000 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class DatagramSocket
|
||||||
if (this instanceof MulticastSocket)
|
if (this instanceof MulticastSocket)
|
||||||
impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(true));
|
impl.setOption(SocketOptions.SO_REUSEADDR, new Boolean(true));
|
||||||
|
|
||||||
impl.bind(port, laddr);
|
impl.bind(port, laddr == null ? ServerSocket.ANY_IF : laddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close()
|
public void close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue