Generated by
JDiff

Class java.net.Socket

Documentation changed from old to new.

Changed Constructors
Socket(String, int) Documentation changed from old to new.
Creates a stream socket and connects it to the specified port number on the named host.
Socket(String, int, InetAddress, int) Documentation changed from old to new.
Creates a socket and connects it to the specified remote host on the specified remote port.
Socket(InetAddress, int, InetAddress, int) Documentation changed from old to new.
Creates a socket and connects it to the specified remote address on the specified remote port.
Socket(SocketImpl) Documentation changed from old to new.
Creates an unconnected Socket with a user-specified SocketImpl.
 

Added Methods
boolean getKeepAlive() Tests if SO_KEEPALIVE is enabled.
void setKeepAlive(boolean) Enable/disable SO_KEEPALIVE.
void shutdownInput() Places the input stream for this socket at "end of stream".
void shutdownOutput() Disables the output stream for this socket.
 

Changed Methods
InetAddress getLocalAddress() Documentation changed from old to new.
Gets the local address to which the socket is bound.
int getReceiveBufferSize() Documentation changed from old to new.
Gets the value of the SO_RCVBUF option for this Socket that is the buffer size used by the platform for input on this Socket.
int getSendBufferSize() Documentation changed from old to new.
Get value of the SO_SNDBUF option for this Socket that is the buffer size used by the platform for output on this Socket.
int getSoLinger() Documentation changed from old to new.
Returns setting for SO_LINGER.
int getSoTimeout() Documentation changed from old to new.
Returns setting for SO_TIMEOUT.
boolean getTcpNoDelay() Documentation changed from old to new.
Tests if TCP_NODELAY is enabled.
void setReceiveBufferSize(int) Documentation changed from old to new.
Sets the SO_RCVBUF option to the specified value for this Socket.
void setSendBufferSize(int) Documentation changed from old to new.
Sets the SO_SNDBUF option to the specified value for this Socket.
void setSoLinger(boolean, int) Documentation changed from old to new.
Enable/disable SO_LINGER with the specified linger time in seconds.
void setSoTimeout(int) Documentation changed from old to new.
Enable/disable SO_TIMEOUT with the specified timeout in milliseconds.
void setTcpNoDelay(boolean) Documentation changed from old to new.
Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm).