public class SystemDatagramSocketProvider extends Object implements DatagramSocketProvider
| Modifier and Type | Field and Description |
|---|---|
static SystemDatagramSocketProvider |
INSTANCE
A default SocketProvider instance.
|
| Constructor and Description |
|---|
SystemDatagramSocketProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSecure()
Return true iff the provider returns sockets which are secured, for instance by TLS.
|
DatagramSocket |
openDatagramSocket()
Return a new DatagramSocket.
|
MulticastSocket |
openMulticastSocket()
Return a new MulticastSocket.
|
String |
toString() |
public static final SystemDatagramSocketProvider INSTANCE
public DatagramSocket openDatagramSocket() throws IOException
DatagramSocketProvideropenDatagramSocket in interface DatagramSocketProviderIOException - if an I/O related error occurspublic MulticastSocket openMulticastSocket() throws IOException
DatagramSocketProvideropenMulticastSocket in interface DatagramSocketProviderIOException - if an I/O related error occurspublic boolean isSecure()
DatagramSocketProviderisSecure in interface DatagramSocketProvider