Generated by
JDiff

Class java.net.Socket

Changed Constructors
Socket(void) Change of visibility from protected to public.
Creates an unconnected socket with the system-default type of SocketImpl.
 

Added Methods
void bind(SocketAddress) Binds the socket to a local address.
void connect(SocketAddress) Connects this socket to the server.
void connect(SocketAddress, int) Connects this socket to the server with a specified timeout value.
SocketChannel getChannel() Returns the unique SocketChannel object associated with this socket if any.
SocketAddress getLocalSocketAddress() Returns the address of the endpoint this socket is bound to or null if it is not bound yet.
boolean getOOBInline() Tests if OOBINLINE is enabled.
SocketAddress getRemoteSocketAddress() Returns the address of the endpoint this socket is connected to or null if it is unconnected.
boolean getReuseAddress() Tests if SO_REUSEADDR is enabled.
int getTrafficClass() Gets traffic class or type-of-service in the IP header for packets sent from this Socket
boolean isBound() Returns the binding state of the socket.
boolean isClosed() Returns the closed state of the socket.
boolean isConnected() Returns the connection state of the socket.
boolean isInputShutdown() Returns wether the read-half of the socket connection is closed.
boolean isOutputShutdown() Returns wether the write-half of the socket connection is closed.
void sendUrgentData(int) Send one byte of urgent data on the socket.
void setOOBInline(boolean) Enable/disable OOBINLINE (receipt of TCP urgent data) By default this option is disabled and TCP urgent data received on a socket is silently discarded.
void setReuseAddress(boolean) Enable/disable the SO_REUSEADDR socket option.
void setTrafficClass(int) Sets traffic class or type-of-service octet in the IP header for packets sent from this Socket.