Commit c390b4a6 by Bryce McKinlay Committed by Bryce McKinlay

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
parent 34289d57
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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment