Home / Function/ testAddressIpv4() — netty Function Reference

testAddressIpv4() — netty Function Reference

Architecture documentation for the testAddressIpv4() function in NativeTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  85aef4b0_e24d_1367_bb1c_5eb266304043["testAddressIpv4()"]
  36eb872b_2162_6b35_c8b6_952562b6ae96["NativeTest"]
  85aef4b0_e24d_1367_bb1c_5eb266304043 -->|defined in| 36eb872b_2162_6b35_c8b6_952562b6ae96
  style 85aef4b0_e24d_1367_bb1c_5eb266304043 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/NativeTest.java lines 30–38

    @Test
    public void testAddressIpv4() throws Exception {
        InetSocketAddress inetAddress = new InetSocketAddress(NetUtil.LOCALHOST4, 9999);
        byte[] bytes = new byte[8];
        ByteBuffer buffer = ByteBuffer.wrap(bytes);
        buffer.put(inetAddress.getAddress().getAddress());
        buffer.putInt(inetAddress.getPort());
        assertEquals(inetAddress, address(buffer.array(), 0, bytes.length));
    }

Domain

Subdomains

Frequently Asked Questions

What does testAddressIpv4() do?
testAddressIpv4() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/NativeTest.java.
Where is testAddressIpv4() defined?
testAddressIpv4() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/NativeTest.java at line 30.

Analyze Your Own Codebase

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

Try Supermodel Free