Generated by
JDiff

Class java.net.DatagramSocket

Documentation changed from old to new.

Added Constructors
DatagramSocket(DatagramSocketImpl) Creates an unbound datagram socket with the specified DatagramSocketImpl.
DatagramSocket(SocketAddress) Creates a datagram socket bound to the specified local socket address.
 

Changed Constructors
DatagramSocket(int) Documentation changed from old to new.
Constructs a datagram socket and binds it to the specified port on the local host machine.
DatagramSocket(int, InetAddress) Documentation changed from old to new.
Creates a datagram socket bound to the specified local address.
DatagramSocket(void) Documentation changed from old to new.
Constructs a datagram socket and binds it to any available port on the local host machine.
 

Removed Methods
void connect(InetAddress, int) Connects the socket to a remote address for this socket.
 

Added Methods
void bind(SocketAddress) Binds this DatagramSocket to a specific address & port.
void connect(SocketAddress) Connects this socket to a remote socket address (IP address + port number).
void connect(InetAddress, int) Connects the socket to a remote address for this socket.
boolean getBroadcast() Tests if SO_BROADCAST is enabled.
DatagramChannel getChannel() Returns the unique java.nio.channels.DatagramChannel object associated with this datagram socket if any.
SocketAddress getLocalSocketAddress() Returns the address of the endpoint this socket is bound to or null if it is not bound yet.
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 datagram header for packets sent from this DatagramSocket.
boolean isBound() Returns the binding state of the socket.
boolean isClosed() Returns wether the socket is closed or not.
boolean isConnected() Returns the connection state of the socket.
void setBroadcast(boolean) Enable/disable SO_BROADCAST.
void setReuseAddress(boolean) Enable/disable the SO_REUSEADDR socket option.
void setTrafficClass(int) Sets traffic class or type-of-service octet in the IP datagram header for datagrams sent from this DatagramSocket.
 

Changed Methods
void close() Documentation changed from old to new.
Closes this datagram socket.
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.
Get value of the SO_RCVBUF option for this DatagramSocket that is the buffer size used by the platform for input on this DatagramSocket.
int getSendBufferSize() Documentation changed from old to new.
Get value of the SO_SNDBUF option for this DatagramSocket that is the buffer size used by the platform for output on this DatagramSocket.
int getSoTimeout() Documentation changed from old to new.
Retrive setting for SO_TIMEOUT.
void receive(DatagramPacket) Documentation changed from old to new.
Receives a datagram packet from this socket.
void send(DatagramPacket) Documentation changed from old to new.
Sends a datagram packet from this socket.
void setReceiveBufferSize(int) Documentation changed from old to new.
Sets the SO_RCVBUF option to the specified value for this DatagramSocket.
void setSendBufferSize(int) Documentation changed from old to new.
Sets the SO_SNDBUF option to the specified value for this DatagramSocket.
void setSoTimeout(int) Documentation changed from old to new.
Enable/disable SO_TIMEOUT with the specified timeout in milliseconds.