Class | Description |
---|---|
DatagramPacket |
This class models a packet of data that is to be sent across the network
using a connectionless protocol such as UDP.
|
DatagramSocket |
This class models a connectionless datagram socket that sends individual
packets of data across the network.
|
Inet4Address | |
Inet6Address | |
InetAddress |
This class models an Internet address.
|
InetSocketAddress |
InetSocketAddress instances represent socket addresses in the java.nio
package.
|
ServerSocket |
This class models server side sockets.
|
Socket |
This class models a client site socket.
|
SocketAddress |
Abstract base class for InetSocketAddress.
|
URI |
A URI instance represents that defined by
RFC3986, with some
deviations.
|
Exception | Description |
---|---|
SocketException |
This exception indicates that a generic error occurred related to an
operation on a socket.
|
SocketTimeoutException |
This exception signals that a socket read or accept timed out.
|
UnknownHostException |
This exception indicates that an attempt was made to reference a hostname or
IP address that is not valid.
|
URISyntaxException |
This exception is thrown when a String cannot be parsed as a URI.
|
Network communication through TCP and UDP sockets or URLs.