Top Description Fields Constructors Methods
org.newsclub.net.unix

pack-priv abstract Class DatagramSocketImplShim

extends DatagramSocketImpl
Class Inheritance
Known Direct Subclasses
org.newsclub.net.unix.AFDatagramSocketImpl
Imports
java.io.IOException, java.net.DatagramSocketImpl, .SocketOption, java.util.Set

A shim that is filled with Java version-specific overrides. This variant is for Java 9 and above.
Author
Christian Kohlschütter

Field Summary

Inherited from java.net.DatagramSocketImpl:
fdlocalPort

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected <T> T
getOption(SocketOption<T>
The socket option
name
)

Overrides java.net.DatagramSocketImpl.getOption.

Called to get a socket option.

protected <T> void
setOption(SocketOption<T>
The socket option
name
,
T
The value of the socket option. A value of null may be valid for some options.
value
)

Overrides java.net.DatagramSocketImpl.setOption.

Called to set a socket option.

protected Set<SocketOption<?>>
supportedOptions()

Overrides java.net.DatagramSocketImpl.supportedOptions.

Returns a set of SocketOptions supported by this impl and by this impl's socket (DatagramSocket or MulticastSocket)

Inherited from java.net.DatagramSocketImpl:
bindcloseconnectcreatedisconnectgetFileDescriptorgetLocalPortgetTimeToLivegetTTLjoinjoinGroupleaveleaveGrouppeekpeekDatareceivesendsetTimeToLivesetTTL

Constructor Detail

DatagramSocketImplShimback to summary
protected DatagramSocketImplShim()

Method Detail

getOptionback to summary
protected <T> T getOption(SocketOption<T> name) throws IOException

Overrides java.net.DatagramSocketImpl.getOption.

Doc from java.net.DatagramSocketImpl.getOption.

Called to get a socket option.

Parameters
<T>
The type of the socket option value
name:SocketOption<T>

The socket option

Returns:T

the socket option

Annotations
@SuppressWarnings:unchecked
@Override
Exceptions
IOException:
if an I/O error occurs, or if the socket is closed
setOptionback to summary
protected <T> void setOption(SocketOption<T> name, T value) throws IOException

Overrides java.net.DatagramSocketImpl.setOption.

Doc from java.net.DatagramSocketImpl.setOption.

Called to set a socket option.

Parameters
<T>
The type of the socket option value
name:SocketOption<T>

The socket option

value:T

The value of the socket option. A value of null may be valid for some options.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs, or if the socket is closed
supportedOptionsback to summary
protected Set<SocketOption<?>> supportedOptions()

Overrides java.net.DatagramSocketImpl.supportedOptions.

Doc from java.net.DatagramSocketImpl.supportedOptions.

Returns a set of SocketOptions supported by this impl and by this impl's socket (DatagramSocket or MulticastSocket)

Returns:Set<SocketOption<?>>

a Set of SocketOptions

Annotations
@Override