Package com.kristensoft.kdc
Class UdpSocketOptions
- java.lang.Object
-
- com.kristensoft.kdc.UdpSocketOptions
-
- Direct Known Subclasses:
MulticastSocketOptions
public class UdpSocketOptions extends Object
Defines socket options for UDP and multicast communication.Instances are created using the
UdpSocketOptions.Builder. Options that are not explicitly configured use the underlying socket defaults.This class also provides the common socket options inherited by
MulticastSocketOptions.- Author:
- Charles B. Kozoyed
- See Also:
UdpClient,MulticastSocketOptions,UdpSocketOptions.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUdpSocketOptions.BuilderBuildsUdpSocketOptionsinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetBroadcast()Returns whether broadcast is configured.IntegergetReceiveBufferSize()Returns the configured receive buffer size.BooleangetReuseAddress()Returns whether address reuse is configured.IntegergetSendBufferSize()Returns the configured send buffer size.IntegergetSoTimeout()Returns the configured socket timeout.IntegergetTrafficClass()Returns the configured IP traffic class.
-
-
-
Method Detail
-
getReuseAddress
public Boolean getReuseAddress()
Returns whether address reuse is configured.- Returns:
- the configured address reuse setting, or
nullto use the underlying socket default
-
getReceiveBufferSize
public Integer getReceiveBufferSize()
Returns the configured receive buffer size.- Returns:
- the receive buffer size in bytes, or
nullto use the underlying socket default
-
getSendBufferSize
public Integer getSendBufferSize()
Returns the configured send buffer size.- Returns:
- the send buffer size in bytes, or
nullto use the underlying socket default
-
getSoTimeout
public Integer getSoTimeout()
Returns the configured socket timeout.- Returns:
- the socket timeout in milliseconds, or
nullto use the underlying socket default
-
getBroadcast
public Boolean getBroadcast()
Returns whether broadcast is configured.- Returns:
- the configured broadcast setting, or
nullto use the underlying socket default
-
getTrafficClass
public Integer getTrafficClass()
Returns the configured IP traffic class.- Returns:
- the IP traffic class, or
nullto use the underlying socket default
-
-