Home / Function/ testUnixAbstractDomainSocket() — netty Function Reference

testUnixAbstractDomainSocket() — netty Function Reference

Architecture documentation for the testUnixAbstractDomainSocket() function in LinuxSocketTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  855e2754_d22e_7721_1c05_4b5351469a59["testUnixAbstractDomainSocket()"]
  4a9abc5d_1dba_c643_f76d_b922328fd23f["LinuxSocketTest"]
  855e2754_d22e_7721_1c05_4b5351469a59 -->|defined in| 4a9abc5d_1dba_c643_f76d_b922328fd23f
  style 855e2754_d22e_7721_1c05_4b5351469a59 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/LinuxSocketTest.java lines 99–114

    @Test
    public void testUnixAbstractDomainSocket() throws IOException {
        String address  = "\0" + UUID.randomUUID();

        final DomainSocketAddress domainSocketAddress = new DomainSocketAddress(address);
        final Socket socket = Socket.newSocketDomain();
        try {
            socket.bind(domainSocketAddress);
            DomainSocketAddress local = socket.localDomainSocketAddress();
            assertEquals(domainSocketAddress, local);
            assertEquals(address, domainSocketAddress.path());
            assertEquals(address, local.path());
        } finally {
            socket.close();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free