Home / Function/ serverSocket() — netty Function Reference

serverSocket() — netty Function Reference

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

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  60a13eed_a596_80a9_3420_6fb5b8f785f1["serverSocket()"]
  8df74157_ee6b_4bb5_84ec_4d5083b86dfc["KQueueSocketTestPermutation"]
  60a13eed_a596_80a9_3420_6fb5b8f785f1 -->|defined in| 8df74157_ee6b_4bb5_84ec_4d5083b86dfc
  6128ec9f_f8b4_a1b0_abb5_9bf227955a7f["socket()"]
  6128ec9f_f8b4_a1b0_abb5_9bf227955a7f -->|calls| 60a13eed_a596_80a9_3420_6fb5b8f785f1
  style 60a13eed_a596_80a9_3420_6fb5b8f785f1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-kqueue/src/test/java/io/netty/channel/kqueue/KQueueSocketTestPermutation.java lines 59–91

    @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(KQUEUE_GROUP)
                                            .channel(KQueueServerSocketChannel.class);
            }
        });
        if (KQueue.isTcpFastOpenServerSideAvailable()) {
            toReturn.add(new BootstrapFactory<ServerBootstrap>() {
                @Override
                public ServerBootstrap newInstance() {
                    ServerBootstrap serverBootstrap = new ServerBootstrap()
                            .group(KQUEUE_GROUP)
                            .channel(KQueueServerSocketChannel.class);
                    serverBootstrap.option(ChannelOption.TCP_FASTOPEN, 1);
                    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-kqueue/src/test/java/io/netty/channel/kqueue/KQueueSocketTestPermutation.java.
Where is serverSocket() defined?
serverSocket() is defined in transport-native-kqueue/src/test/java/io/netty/channel/kqueue/KQueueSocketTestPermutation.java at line 59.
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