Home / Function/ datagram() — netty Function Reference

datagram() — netty Function Reference

Architecture documentation for the datagram() function in SocketTestPermutation.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  24c44e9c_6631_5477_c4a4_f742a7b00e49["datagram()"]
  d1a88829_0f4e_903e_71ca_619ab445cd85["SocketTestPermutation"]
  24c44e9c_6631_5477_c4a4_f742a7b00e49 -->|defined in| d1a88829_0f4e_903e_71ca_619ab445cd85
  36e01be4_f343_d92c_9462_5b05616da59e["combo()"]
  24c44e9c_6631_5477_c4a4_f742a7b00e49 -->|calls| 36e01be4_f343_d92c_9462_5b05616da59e
  style 24c44e9c_6631_5477_c4a4_f742a7b00e49 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketTestPermutation.java lines 135–167

    public List<BootstrapComboFactory<Bootstrap, Bootstrap>> datagram(final SocketProtocolFamily family) {
        // Make the list of Bootstrap factories.
        List<BootstrapFactory<Bootstrap>> bfs = new ArrayList<>();

        bfs.add(new BootstrapFactory<Bootstrap>() {
            @Override
            public Bootstrap newInstance() {
                return new Bootstrap().group(NIO_GROUP).channelFactory(new ChannelFactory<Channel>() {
                    @Override
                    public Channel newChannel() {
                        return new NioDatagramChannel(family);
                    }

                    @Override
                    public String toString() {
                        return NioDatagramChannel.class.getSimpleName() + ".class";
                    }
                });
            }
        });
        if (INCLUDE_OIO) {
            bfs.add(new BootstrapFactory<Bootstrap>() {
                @Override
                public Bootstrap newInstance() {
                    return new Bootstrap().group(OIO_GROUP).channel(OioDatagramChannel.class)
                            .option(ChannelOption.SO_TIMEOUT, OIO_SO_TIMEOUT);
                }
            });
        }

        // Populare the combinations.
        return combo(bfs, bfs);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does datagram() do?
datagram() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketTestPermutation.java.
Where is datagram() defined?
datagram() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketTestPermutation.java at line 135.
What does datagram() call?
datagram() calls 1 function(s): combo.

Analyze Your Own Codebase

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

Try Supermodel Free