testRawOption() — netty Function Reference
Architecture documentation for the testRawOption() function in EpollChannelConfigTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a60b2860_4cf8_3333_0752_010f5cf93563["testRawOption()"] 7543ebba_fcb9_7965_bc72_f8525a811eb2["EpollChannelConfigTest"] a60b2860_4cf8_3333_0752_010f5cf93563 -->|defined in| 7543ebba_fcb9_7965_bc72_f8525a811eb2 style a60b2860_4cf8_3333_0752_010f5cf93563 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollChannelConfigTest.java lines 74–96
@Test
public void testRawOption() throws Exception {
Epoll.ensureAvailability();
EpollSocketChannel channel = new EpollSocketChannel();
// Value for SOL_SOCKET and SO_REUSEADDR
// See https://github.com/torvalds/linux/blob/v5.17/include/uapi/asm-generic/socket.h
RawUnixChannelOption opt = new RawUnixChannelOption("RAW_OPT", 1, 2, 4);
CleanableDirectBuffer disabledCleanable = Buffer.allocateDirectBufferWithNativeOrder(4);
ByteBuffer disabled = disabledCleanable.buffer();
disabled.putInt(0).flip();
assertEquals(disabled, channel.config().getOption(opt));
CleanableDirectBuffer enabledCleanable = Buffer.allocateDirectBufferWithNativeOrder(4);
ByteBuffer enabled = enabledCleanable.buffer();
enabled.putInt(1).flip();
channel.config().setOption(opt, enabled);
assertNotEquals(disabled, channel.config().getOption(opt));
channel.fd().close();
disabledCleanable.clean();
enabledCleanable.clean();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testRawOption() do?
testRawOption() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollChannelConfigTest.java.
Where is testRawOption() defined?
testRawOption() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollChannelConfigTest.java at line 74.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free