Channel() — netty Function Reference
Architecture documentation for the Channel() function in IoUringServerSocketChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 11ff421d_d471_f5e5_0f89_71448e3b001b["Channel()"] 7afdfb1c_e11f_1098_0422_fb18184eba53["IoUringServerSocketChannel"] 11ff421d_d471_f5e5_0f89_71448e3b001b -->|defined in| 7afdfb1c_e11f_1098_0422_fb18184eba53 style 11ff421d_d471_f5e5_0f89_71448e3b001b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringServerSocketChannel.java lines 48–66
@Override
Channel newChildChannel(int fd, ByteBuffer acceptedAddressMemory) {
IoUringIoHandler handler = registration().attachment();
LinuxSocket socket = new LinuxSocket(fd);
if (acceptedAddressMemory != null) {
// We didnt use ACCEPT_MULTISHOT And so can depend on the addresses.
final InetSocketAddress address;
if (socket.isIpv6()) {
byte[] ipv6Array = handler.inet6AddressArray();
byte[] ipv4Array = handler.inet4AddressArray();
address = SockaddrIn.getIPv6(acceptedAddressMemory, ipv6Array, ipv4Array);
} else {
byte[] addressArray = handler.inet4AddressArray();
address = SockaddrIn.getIPv4(acceptedAddressMemory, addressArray);
}
return new IoUringSocketChannel(this, new LinuxSocket(fd), address);
}
return new IoUringSocketChannel(this, new LinuxSocket(fd));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Channel() do?
Channel() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringServerSocketChannel.java.
Where is Channel() defined?
Channel() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringServerSocketChannel.java at line 48.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free