natPlainSocketImpl.cc (bind): Bind to any/all network interfaces if host==NULL.
* java/net/natPlainSocketImpl.cc (bind): Bind to any/all network interfaces if host==NULL. (accept): Throw message with InterruptedIOException. (getOption): Cache localAddress. * java/net/natPlainDatagramSocketImpl.cc (bind): Don't need 'address' for DatagramSocket. (setTimeToLive): Fix compiler warnings. (getOption): Cache localAddress. * java/net/Socket.java (getLocalAddress): Don't need local InetAddress object. Add FIXME comment about calling checkConnect(). * java/net/ServerSocket.java (ServerSocket(int)): Initialize connection queue to 50 as per JDK 1.2 docs. (ServerSocket(int,int)): Listen on all network interfaces by default, per JDK 1.2 docs. * java/net/PlainDatagramSocketImpl.java: Don't need 'address'. Add localAddress caching. From-SVN: r27559
This commit is contained in:
parent
06c8baef3a
commit
1920afb3c6
7 changed files with 92 additions and 51 deletions
|
@ -28,15 +28,13 @@ public class ServerSocket
|
|||
public ServerSocket (int port)
|
||||
throws java.io.IOException
|
||||
{
|
||||
// FIXME: JCL p. 1526 says backlog defaults to 50; is 5 to save space
|
||||
// or a typo?
|
||||
this(port, 5);
|
||||
this(port, 50);
|
||||
}
|
||||
|
||||
public ServerSocket (int port, int backlog)
|
||||
throws java.io.IOException
|
||||
{
|
||||
this(port, backlog, InetAddress.getLocalHost());
|
||||
this(port, backlog, null);
|
||||
}
|
||||
|
||||
public ServerSocket (int port, int backlog, InetAddress bindAddr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue