Home / Function/ ServerSocketChannel() — netty Function Reference

ServerSocketChannel() — netty Function Reference

Architecture documentation for the ServerSocketChannel() function in NioServerDomainSocketChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  945deb82_fef7_5023_ed66_b2c1389f4acc["ServerSocketChannel()"]
  715453c3_0f58_2676_dfae_1919ea420212["NioServerDomainSocketChannel"]
  945deb82_fef7_5023_ed66_b2c1389f4acc -->|defined in| 715453c3_0f58_2676_dfae_1919ea420212
  style 945deb82_fef7_5023_ed66_b2c1389f4acc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java lines 64–78

    static ServerSocketChannel newChannel(SelectorProvider provider) {
        if (PlatformDependent.javaVersion() < 16) {
            throw new UnsupportedOperationException("Only supported with Java 16+");
        }
        try {
            ServerSocketChannel channel =
                    SelectorProviderUtil.newDomainSocketChannel(OPEN_SERVER_SOCKET_CHANNEL_WITH_FAMILY, provider);
            if (channel == null) {
                throw new ChannelException("Failed to open a socket.");
            }
            return channel;
        } catch (IOException e) {
            throw new ChannelException("Failed to open a socket.", e);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does ServerSocketChannel() do?
ServerSocketChannel() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java.
Where is ServerSocketChannel() defined?
ServerSocketChannel() is defined in transport/src/main/java/io/netty/channel/socket/nio/NioServerDomainSocketChannel.java at line 64.

Analyze Your Own Codebase

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

Try Supermodel Free