Home / Function/ datagramSocket() — netty Function Reference

datagramSocket() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c46d78b3_4721_7d6d_230c_52c2949a4efd["datagramSocket()"]
  d1a88829_0f4e_903e_71ca_619ab445cd85["SocketTestPermutation"]
  c46d78b3_4721_7d6d_230c_52c2949a4efd -->|defined in| d1a88829_0f4e_903e_71ca_619ab445cd85
  style c46d78b3_4721_7d6d_230c_52c2949a4efd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketTestPermutation.java lines 216–234

    public List<BootstrapFactory<Bootstrap>> datagramSocket() {
        List<BootstrapFactory<Bootstrap>> factories = new ArrayList<>();
        factories.add(new BootstrapFactory<Bootstrap>() {
            @Override
            public Bootstrap newInstance() {
                return new Bootstrap().group(NIO_GROUP).channel(NioDatagramChannel.class);
            }
        });
        if (INCLUDE_OIO) {
            factories.add(new BootstrapFactory<Bootstrap>() {
                @Override
                public Bootstrap newInstance() {
                    return new Bootstrap().group(OIO_GROUP).channel(OioDatagramChannel.class)
                            .option(ChannelOption.SO_TIMEOUT, OIO_SO_TIMEOUT);
                }
            });
        }
         return factories;
    }

Domain

Subdomains

Frequently Asked Questions

What does datagramSocket() do?
datagramSocket() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketTestPermutation.java.
Where is datagramSocket() defined?
datagramSocket() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketTestPermutation.java at line 216.

Analyze Your Own Codebase

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

Try Supermodel Free