testNioChannelOption() — netty Function Reference
Architecture documentation for the testNioChannelOption() function in AbstractNioChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4a1e30da_af10_37c8_8dbe_346dda84ac11["testNioChannelOption()"] ef48be8c_d69f_4646_8b43_b90c210b17bf["AbstractNioChannelTest"] 4a1e30da_af10_37c8_8dbe_346dda84ac11 -->|defined in| ef48be8c_d69f_4646_8b43_b90c210b17bf style 4a1e30da_af10_37c8_8dbe_346dda84ac11 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/socket/nio/AbstractNioChannelTest.java lines 40–59
@Test
public void testNioChannelOption() throws IOException {
T channel = newNioChannel();
try {
NetworkChannel jdkChannel = jdkChannel(channel);
ChannelOption<Boolean> option = NioChannelOption.of(StandardSocketOptions.SO_REUSEADDR);
boolean value1 = jdkChannel.getOption(StandardSocketOptions.SO_REUSEADDR);
boolean value2 = channel.config().getOption(option);
assertEquals(value1, value2);
channel.config().setOption(option, !value2);
boolean value3 = jdkChannel.getOption(StandardSocketOptions.SO_REUSEADDR);
boolean value4 = channel.config().getOption(option);
assertEquals(value3, value4);
assertNotEquals(value1, value4);
} finally {
channel.unsafe().closeForcibly();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testNioChannelOption() do?
testNioChannelOption() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/socket/nio/AbstractNioChannelTest.java.
Where is testNioChannelOption() defined?
testNioChannelOption() is defined in transport/src/test/java/io/netty/channel/socket/nio/AbstractNioChannelTest.java at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free