| 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).
|
| Modifier and Type | Method and Description |
|---|---|
static SocketProtocolFamily |
SocketProtocolFamily.of(ProtocolFamily family)
Return the
SocketProtocolFamily for the given ProtocolFamily if possible. |
SocketProtocolFamily |
InternetProtocolFamily.toSocketProtocolFamily()
Deprecated.
|
static SocketProtocolFamily |
SocketProtocolFamily.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocketProtocolFamily[] |
SocketProtocolFamily.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
NioDatagramChannel(SelectorProvider provider,
SocketProtocolFamily protocolFamily)
Create a new instance using the given
SelectorProvider and SocketProtocolFamily. |
NioDatagramChannel(SocketProtocolFamily protocolFamily)
Create a new instance using the given
SocketProtocolFamily. |
NioServerSocketChannel(SelectorProvider provider,
SocketProtocolFamily family)
Create a new instance using the given
SelectorProvider and protocol family (supported only since JDK 15). |
NioSocketChannel(SelectorProvider provider,
SocketProtocolFamily family)
Create a new instance using the given
SelectorProvider and protocol family (supported only since JDK 15). |
Copyright © 2008–2025 The Netty Project. All rights reserved.