Home / Function/ datagram() — netty Function Reference

datagram() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fe3a2f3c_2ef0_b714_cba4_a4df74fca738["datagram()"]
  b9d8589a_7c28_e55d_4254_c7b2d8ffa8b8["IoUringSocketTestPermutation"]
  fe3a2f3c_2ef0_b714_cba4_a4df74fca738 -->|defined in| b9d8589a_7c28_e55d_4254_c7b2d8ffa8b8
  style fe3a2f3c_2ef0_b714_cba4_a4df74fca738 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

    @Override
    public List<TestsuitePermutation.BootstrapComboFactory<Bootstrap, Bootstrap>> datagram(
            final SocketProtocolFamily family) {
        // Make the list of Bootstrap factories.
        List<BootstrapFactory<Bootstrap>> bfs = Arrays.<BootstrapFactory<Bootstrap>>asList(
                new BootstrapFactory<Bootstrap>() {
                    @Override
                    public Bootstrap newInstance() {
                        return new Bootstrap().group(IO_URING_GROUP)
                                .channelFactory(new ChannelFactory<Channel>() {
                            @Override
                            public Channel newChannel() {
                                return new IoUringDatagramChannel(family);
                            }

                            @Override
                            public String toString() {
                                return IoUringDatagramChannel.class.getSimpleName() + ".class";
                            }
                        });
                    }
                },
                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";
                            }
                        });
                    }
                }
        );

        return combo(bfs, bfs);
    }

Domain

Subdomains

Frequently Asked Questions

What does datagram() do?
datagram() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringSocketTestPermutation.java.
Where is datagram() defined?
datagram() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringSocketTestPermutation.java at line 209.

Analyze Your Own Codebase

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

Try Supermodel Free