Package | Description |
---|---|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.resolver.dns |
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
|
Modifier and Type | Method and Description |
---|---|
static InternetProtocolFamily |
InternetProtocolFamily.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternetProtocolFamily[] |
InternetProtocolFamily.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
NioDatagramChannel(InternetProtocolFamily ipFamily)
Create a new instance using the given
InternetProtocolFamily . |
NioDatagramChannel(SelectorProvider provider,
InternetProtocolFamily ipFamily)
Create a new instance using the given
SelectorProvider and InternetProtocolFamily . |
Modifier and Type | Method and Description |
---|---|
List<InternetProtocolFamily> |
DnsNameResolver.resolvedAddressTypes()
Returns the list of the protocol families of the address resolved by
SimpleNameResolver.resolve(String)
in the order of preference. |
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolvedAddressTypes(InternetProtocolFamily... resolvedAddressTypes)
Sets the list of the protocol families of the address resolved.
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.resolvedAddressTypes(Iterable<InternetProtocolFamily> resolvedAddressTypes)
Sets the list of the protocol families of the address resolved.
|
Constructor and Description |
---|
DnsNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddresses nameServerAddresses,
DnsCache resolveCache,
long queryTimeoutMillis,
InternetProtocolFamily[] resolvedAddressTypes,
boolean recursionDesired,
int maxQueriesPerResolve,
boolean traceEnabled,
int maxPayloadSize,
boolean optResourceEnabled,
HostsFileEntriesResolver hostsFileEntriesResolver,
String[] searchDomains,
int ndots)
Creates a new DNS-based name resolver that communicates with the specified list of DNS servers.
|
Copyright © 2008–2016 The Netty Project. All rights reserved.