Uses of Class
java.net.DatagramSocket
Package
Description
Provides the classes for implementing networking applications.
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
Platform specific socket options for the
java.net
and java.nio.channels
socket classes.-
Uses of DatagramSocket in java.net
Modifier and TypeClassDescriptionclass
The multicast datagram socket class is useful for sending and receiving IP multicast packets.Modifier and TypeMethodDescription<T> DatagramSocket
DatagramSocket.setOption(SocketOption<T> name, T value)
Sets the value of a socket option. -
Uses of DatagramSocket in java.nio.channels
Modifier and TypeMethodDescriptionabstract DatagramSocket
DatagramChannel.socket()
Retrieves a datagram socket associated with this channel. -
Uses of DatagramSocket in jdk.net
Modifier and TypeMethodDescriptionstatic <T> T
Sockets.getOption(DatagramSocket s, SocketOption<T> name)
Deprecated.static <T> void
Sockets.setOption(DatagramSocket s, SocketOption<T> name, T value)
Deprecated.usesetOption(SocketOption, Object)
instead.
getOption(SocketOption)
instead.