public interface DatagramChannelConfig extends ChannelConfig
ChannelConfig for a DatagramChannel.
ChannelConfig,
DatagramChannelConfig allows the following options in the option map:
| Name | Associated setter method |
|---|---|
"broadcast" | setBroadcast(boolean) |
"interface" | setInterface(InetAddress) |
"loopbackModeDisabled" | setLoopbackModeDisabled(boolean) |
"networkInterface" | setNetworkInterface(NetworkInterface) |
"reuseAddress" | setReuseAddress(boolean) |
"receiveBufferSize" | setReceiveBufferSize(int) |
"sendBufferSize" | setSendBufferSize(int) |
"timeToLive" | setTimeToLive(int) |
"trafficClass" | setTrafficClass(int) |
getConnectTimeoutMillis, getOption, getOptions, getWriteSpinCount, setConnectTimeoutMillis, setOption, setOptions, setWriteSpinCountint getSendBufferSize()
StandardSocketOptions.SO_SNDBUF option.void setSendBufferSize(int sendBufferSize)
StandardSocketOptions.SO_SNDBUF option.int getReceiveBufferSize()
StandardSocketOptions.SO_RCVBUF option.void setReceiveBufferSize(int receiveBufferSize)
StandardSocketOptions.SO_RCVBUF option.int getReceivePacketSize()
void setReceivePacketSize(int receivePacketSize)
int getTrafficClass()
StandardSocketOptions.IP_TOS option.void setTrafficClass(int trafficClass)
StandardSocketOptions.IP_TOS option.boolean isReuseAddress()
StandardSocketOptions.SO_REUSEADDR option.void setReuseAddress(boolean reuseAddress)
StandardSocketOptions.SO_REUSEADDR option.boolean isBroadcast()
StandardSocketOptions.SO_BROADCAST option.void setBroadcast(boolean broadcast)
StandardSocketOptions.SO_BROADCAST option.boolean isLoopbackModeDisabled()
StandardSocketOptions.IP_MULTICAST_LOOP option.true if and only if the loopback mode has been disabledvoid setLoopbackModeDisabled(boolean loopbackModeDisabled)
StandardSocketOptions.IP_MULTICAST_LOOP option.loopbackModeDisabled - true if and only if the loopback mode has been disabledint getTimeToLive()
StandardSocketOptions.IP_MULTICAST_TTL option.void setTimeToLive(int ttl)
StandardSocketOptions.IP_MULTICAST_TTL option.InetAddress getInterface()
void setInterface(InetAddress interfaceAddress)
NetworkInterface getNetworkInterface()
StandardSocketOptions.IP_MULTICAST_IF option.void setNetworkInterface(NetworkInterface networkInterface)
StandardSocketOptions.IP_MULTICAST_IF option.Copyright © 2008-2012 The Netty Project. All Rights Reserved.