Channel() — netty Function Reference
Architecture documentation for the Channel() function in KQueueDomainDatagramUnicastTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f4029072_fcbb_7c81_4acf_73218c1bc0db["Channel()"] 9d868f0f_1fff_ae59_a7c4_27d4f8eceb87["KQueueDomainDatagramUnicastTest"] f4029072_fcbb_7c81_4acf_73218c1bc0db -->|defined in| 9d868f0f_1fff_ae59_a7c4_27d4f8eceb87 style f4029072_fcbb_7c81_4acf_73218c1bc0db fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-kqueue/src/test/java/io/netty/channel/kqueue/KQueueDomainDatagramUnicastTest.java lines 86–112
@Override
protected Channel setupClientChannel(Bootstrap cb, final byte[] bytes, final CountDownLatch latch,
final AtomicReference<Throwable> errorRef) throws Throwable {
cb.handler(new SimpleChannelInboundHandler<DomainDatagramPacket>() {
@Override
public void channelRead0(ChannelHandlerContext ctx, DomainDatagramPacket msg) {
try {
ByteBuf buf = msg.content();
assertEquals(bytes.length, buf.readableBytes());
for (int i = 0; i < bytes.length; i++) {
assertEquals(bytes[i], buf.getByte(buf.readerIndex() + i));
}
assertEquals(ctx.channel().localAddress(), msg.recipient());
} finally {
latch.countDown();
}
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
errorRef.compareAndSet(null, cause);
}
});
return cb.bind(newSocketAddress()).sync().channel();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Channel() do?
Channel() is a function in the netty codebase, defined in transport-native-kqueue/src/test/java/io/netty/channel/kqueue/KQueueDomainDatagramUnicastTest.java.
Where is Channel() defined?
Channel() is defined in transport-native-kqueue/src/test/java/io/netty/channel/kqueue/KQueueDomainDatagramUnicastTest.java at line 86.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free