testNioChannelOption() — netty Function Reference
Architecture documentation for the testNioChannelOption() function in AbstractNioDomainChannelTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6504590b_c906_ca6c_553a_2f561a0f1b12["testNioChannelOption()"] d33a3ba1_ed18_792c_e841_ba2f4ab6f146["AbstractNioDomainChannelTest"] 6504590b_c906_ca6c_553a_2f561a0f1b12 -->|defined in| d33a3ba1_ed18_792c_e841_ba2f4ab6f146 style 6504590b_c906_ca6c_553a_2f561a0f1b12 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/socket/nio/AbstractNioDomainChannelTest.java lines 40–59
@Test
public void testNioChannelOption() throws IOException {
T channel = newNioChannel();
try {
NetworkChannel jdkChannel = jdkChannel(channel);
ChannelOption<Integer> option = NioChannelOption.of(StandardSocketOptions.SO_RCVBUF);
int value1 = jdkChannel.getOption(StandardSocketOptions.SO_RCVBUF);
int value2 = channel.config().getOption(option);
assertEquals(value1, value2);
channel.config().setOption(option, 1 + value2);
int value3 = jdkChannel.getOption(StandardSocketOptions.SO_RCVBUF);
int 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/AbstractNioDomainChannelTest.java.
Where is testNioChannelOption() defined?
testNioChannelOption() is defined in transport/src/test/java/io/netty/channel/socket/nio/AbstractNioDomainChannelTest.java at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free