ServerSocket.java (ServerSocket): Bind to any interface if bindAddr is null.

1999-12-02  Bryce McKinlay  <bryce@albatross.co.nz>

        * libjava/java/net/ServerSocket.java (ServerSocket): Bind to any
        interface if bindAddr is null.

From-SVN: r30755
This commit is contained in:
Bryce McKinlay 1999-12-02 10:09:24 +00:00 committed by Bryce McKinlay
parent 34289d575d
commit c390b4a687
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-12-02 Bryce McKinlay <bryce@albatross.co.nz>
* libjava/java/net/ServerSocket.java (ServerSocket): Bind to any
interface if bindAddr is null.
1999-11-30 Tom Tromey <tromey@cygnus.com>
* posix-threads.cc (_Jv_MutexInit): Use _Jv_PthreadGetMutex to get

View File

@ -52,7 +52,7 @@ public class ServerSocket
if (s != null)
s.checkListen(port);
impl.create(true);
impl.bind(bindAddr, port);
impl.bind(bindAddr == null ? ANY_IF : bindAddr, port);
impl.listen(backlog);
}