Top Constructors Methods
org.newsclub.net.unix

pack-priv abstract Class DatagramSocketShim

extends DatagramSocket
Class Inheritance
Known Direct Subclasses
org.newsclub.net.unix.AFDatagramSocket
Annotations
@IgnoreJRERequirement
Imports
java.io.IOException, java.net.DatagramSocket, .DatagramSocketImpl, .SocketOption, org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Constructor Summary

AccessConstructor and Description
protected

Method Summary

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

Overrides java.net.DatagramSocket.getOption.

Returns the value of a socket option.

public abstract <
The type of the socket option value.
T
>
T

Returns:

The value of the socket option.
getOption
(AFSocketOption<T>
The socket option.
name
)

Returns the value of a junixsocket socket option.

public <T> DatagramSocket
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.DatagramSocket.setOption.

Sets the value of a socket option.

public abstract <
The type of the socket option value.
T
>
DatagramSocket

Returns:

this DatagramSocket.
setOption
(AFSocketOption<T>
The socket option.
name
,
T
The value of the socket option.
value
)

Sets the value of a socket option.

Inherited from java.net.DatagramSocket:
bindcloseconnectconnectdisconnectgetBroadcastgetChannelgetInetAddressgetLocalAddressgetLocalPortgetLocalSocketAddressgetPortgetReceiveBufferSizegetRemoteSocketAddressgetReuseAddressgetSendBufferSizegetSoTimeoutgetTrafficClassisBoundisClosedisConnectedjoinGroupleaveGroupreceivesendsetBroadcastsetDatagramSocketImplFactorysetReceiveBufferSizesetReuseAddresssetSendBufferSizesetSoTimeoutsetTrafficClasssupportedOptions

Constructor Detail

DatagramSocketShimback to summary
protected DatagramSocketShim(DatagramSocketImpl impl)

Method Detail

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

Overrides java.net.DatagramSocket.getOption.

Doc from java.net.DatagramSocket.getOption.

Returns the value of a socket option.

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

The socket option

Returns:T

The value of the socket option.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs, or if the socket is closed.
getOptionback to summary
public abstract <T> T getOption(AFSocketOption<T> name) throws IOException

Returns the value of a junixsocket socket option.

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

The socket option.

Returns:T

The value of the socket option.

Exceptions
IOException:
on error.
setOptionback to summary
public <T> DatagramSocket setOption(SocketOption<T> name, T value) throws IOException

Overrides java.net.DatagramSocket.setOption.

Doc from java.net.DatagramSocket.setOption.

Sets the value of 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.

Returns:DatagramSocket

this DatagramSocket

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs, or if the socket is closed.
setOptionback to summary
public abstract <T> DatagramSocket setOption(AFSocketOption<T> name, T value) throws IOException

Sets the value of a socket option.

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

The socket option.

value:T

The value of the socket option.

Returns:DatagramSocket

this DatagramSocket.

Annotations
@SuppressWarnings:PMD.LinguisticNaming
Exceptions
IOException:
on error.