Uses of Class
java.net.DatagramSocket
Packages that useDatagramSocket
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 andjava.nio.channels socket classes.Uses ofDatagramSocket injava.net
Subclasses ofDatagramSocket injava.netModifier and TypeClassDescriptionclassAMulticastSocketis a datagram socket that is convenient for sending and receiving IP multicast datagrams.Methods injava.net that returnDatagramSocketModifier and TypeMethodDescription<T> DatagramSocketDatagramSocket.setOption(SocketOption<T> name, T value) Sets the value of a socket option.Uses ofDatagramSocket injava.nio.channels
Methods injava.nio.channels that returnDatagramSocketModifier and TypeMethodDescriptionabstractDatagramSocketDatagramChannel.socket()Retrieves a datagram socket associated with this channel.Uses ofDatagramSocket injdk.net
Methods injdk.net with parameters of typeDatagramSocketModifier and TypeMethodDescriptionstatic <T> TSockets.getOption(DatagramSocket s,SocketOption<T> name) Deprecated.usegetOption(SocketOption)instead.static <T> voidSockets.setOption(DatagramSocket s,SocketOption<T> name, T value) Deprecated.usesetOption(SocketOption, Object)instead.