Home / Function/ testIntOpt() — netty Function Reference

testIntOpt() — netty Function Reference

Architecture documentation for the testIntOpt() function in SocketTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8b717330_af44_3a55_0c00_0d61cd5ad8bc["testIntOpt()"]
  5043e69c_94c9_249c_15bc_1579a5a6a4b9["SocketTest"]
  8b717330_af44_3a55_0c00_0d61cd5ad8bc -->|defined in| 5043e69c_94c9_249c_15bc_1579a5a6a4b9
  96cd0b84_8026_4a18_9280_25e96463f4d1["level()"]
  8b717330_af44_3a55_0c00_0d61cd5ad8bc -->|calls| 96cd0b84_8026_4a18_9280_25e96463f4d1
  9958cc65_c44b_7409_28f9_4de0ddb330e2["optname()"]
  8b717330_af44_3a55_0c00_0d61cd5ad8bc -->|calls| 9958cc65_c44b_7409_28f9_4de0ddb330e2
  style 8b717330_af44_3a55_0c00_0d61cd5ad8bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-unix-common-tests/src/main/java/io/netty/channel/unix/tests/SocketTest.java lines 105–114

    @Test
    public void testIntOpt() throws IOException {
        socket.setReuseAddress(false);
        socket.setIntOpt(level(), optname(), 1);
        // Anything which is != 0 is considered enabled
        assertNotEquals(0, socket.getIntOpt(level(), optname()));
        socket.setIntOpt(level(), optname(), 0);
        // This should be disabled again
        assertEquals(0, socket.getIntOpt(level(), optname()));
    }

Domain

Subdomains

Frequently Asked Questions

What does testIntOpt() do?
testIntOpt() is a function in the netty codebase, defined in transport-native-unix-common-tests/src/main/java/io/netty/channel/unix/tests/SocketTest.java.
Where is testIntOpt() defined?
testIntOpt() is defined in transport-native-unix-common-tests/src/main/java/io/netty/channel/unix/tests/SocketTest.java at line 105.
What does testIntOpt() call?
testIntOpt() calls 2 function(s): level, optname.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free