Home / Function/ serverSocket() — netty Function Reference

serverSocket() — netty Function Reference

Architecture documentation for the serverSocket() function in IoUringSocketTestPermutation.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  7467ee49_e8a4_ea57_29ca_b6eb7836ed2f["serverSocket()"]
  b9d8589a_7c28_e55d_4254_c7b2d8ffa8b8["IoUringSocketTestPermutation"]
  7467ee49_e8a4_ea57_29ca_b6eb7836ed2f -->|defined in| b9d8589a_7c28_e55d_4254_c7b2d8ffa8b8
  c1e75e72_1fe9_86bb_68ec_48a6b5ac7da0["socket()"]
  c1e75e72_1fe9_86bb_68ec_48a6b5ac7da0 -->|calls| 7467ee49_e8a4_ea57_29ca_b6eb7836ed2f
  style 7467ee49_e8a4_ea57_29ca_b6eb7836ed2f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringSocketTestPermutation.java lines 89–139

    @Override
    public List<BootstrapFactory<ServerBootstrap>> serverSocket() {
        List<BootstrapFactory<ServerBootstrap>> toReturn = new ArrayList<BootstrapFactory<ServerBootstrap>>();
        toReturn.add(new BootstrapFactory<ServerBootstrap>() {
            @Override
            public ServerBootstrap newInstance() {
                return new ServerBootstrap().group(IO_URING_GROUP)
                                            .channel(IoUringServerSocketChannel.class);
            }
        });
        if (IO_URING_INCREMENTAL_GROUP != null) {
            toReturn.add(new BootstrapFactory<ServerBootstrap>() {
                @Override
                public ServerBootstrap newInstance() {
                    return new ServerBootstrap().group(IO_URING_INCREMENTAL_GROUP)
                            .channel(IoUringServerSocketChannel.class);
                }
            });
        }
        if (IoUring.isTcpFastOpenServerSideAvailable()) {
            toReturn.add(new BootstrapFactory<ServerBootstrap>() {
                @Override
                public ServerBootstrap newInstance() {
                    ServerBootstrap serverBootstrap = new ServerBootstrap().group(IO_URING_GROUP)
                                                                           .channel(IoUringServerSocketChannel.class);
                    serverBootstrap.option(ChannelOption.TCP_FASTOPEN, 5);
                    return serverBootstrap;
                }
            });
            if (IO_URING_INCREMENTAL_GROUP != null) {
                toReturn.add(new BootstrapFactory<ServerBootstrap>() {
                    @Override
                    public ServerBootstrap newInstance() {
                        ServerBootstrap serverBootstrap = new ServerBootstrap().group(IO_URING_INCREMENTAL_GROUP)
                                .channel(IoUringServerSocketChannel.class);
                        serverBootstrap.option(ChannelOption.TCP_FASTOPEN, 5);
                        return serverBootstrap;
                    }
                });
            }
        }
        toReturn.add(new BootstrapFactory<ServerBootstrap>() {
            @Override
            public ServerBootstrap newInstance() {
                return new ServerBootstrap().group(NIO_GROUP)
                                            .channel(NioServerSocketChannel.class);
            }
        });

        return toReturn;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does serverSocket() do?
serverSocket() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringSocketTestPermutation.java.
Where is serverSocket() defined?
serverSocket() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringSocketTestPermutation.java at line 89.
What calls serverSocket()?
serverSocket() is called by 1 function(s): socket.

Analyze Your Own Codebase

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

Try Supermodel Free