|
Generated by JDiff |
||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES | DETAIL: CONSTRUCTORS | METHODS | FIELDS |
Changed Constructors | ||
String, |
Documentation changed from old to new. |
Use DatagramSocket instead for UDP transport. |
InetAddress, |
Documentation changed from old to new. |
Use DatagramSocket instead for UDP transport. |
void ) |
Documentation changed from old to new. 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, |
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. |
Changed Methods | ||
void close() |
Documentation changed from old to new. |
Closes this socket. |
InetAddress getInetAddress() |
Documentation changed from old to new. |
Returns the address to which the socket is connected. |
InputStream getInputStream() |
Documentation changed from old to new. |
Returns an input stream for this socket. |
InetAddress getLocalAddress() |
Documentation changed from old to new. |
Gets the local address to which the socket is bound. |
int getLocalPort() |
Documentation changed from old to new. |
Returns the local port to which this socket is bound. |
OutputStream getOutputStream() |
Documentation changed from old to new. |
Returns an output stream for this socket. |
int getPort() |
Documentation changed from old to new. |
Returns the remote port to which this socket is connected. |
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. |
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, |
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). |
void shutdownInput() |
Documentation changed from old to new. |
Places the input stream for this socket at "end of stream". |
void shutdownOutput() |
Documentation changed from old to new. |
Disables the output stream for this socket. |
|
|||||||||
PREV CLASS NEXT CLASS FRAMES NO FRAMES |