Home / Function/ writePacket() — netty Function Reference

writePacket() — netty Function Reference

Architecture documentation for the writePacket() function in QuicCodecDispatcherTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6f052415_e9c7_32ed_5dfc_d9feba53afc9["writePacket()"]
  fadd0a68_af3f_4e94_ce6f_6f6ce1e2f7b1["QuicCodecDispatcherTest"]
  6f052415_e9c7_32ed_5dfc_d9feba53afc9 -->|defined in| fadd0a68_af3f_4e94_ce6f_6f6ce1e2f7b1
  109ae264_d03b_6be0_7e28_dc77cf8e0c51["testPacketsAreDispatchedToCorrectChannel()"]
  109ae264_d03b_6be0_7e28_dc77cf8e0c51 -->|calls| 6f052415_e9c7_32ed_5dfc_d9feba53afc9
  style 6f052415_e9c7_32ed_5dfc_d9feba53afc9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicCodecDispatcherTest.java lines 91–96

    private static void writePacket(EmbeddedChannel[] channels, boolean shortHeader, short localConnectionIdLength) {
        DatagramPacket packet = createQuicPacket(
                ThreadLocalRandom.current().nextInt(channels.length),
                shortHeader, localConnectionIdLength);
        channels[ThreadLocalRandom.current().nextInt(channels.length)].writeInbound(packet);
    }

Domain

Subdomains

Frequently Asked Questions

What does writePacket() do?
writePacket() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicCodecDispatcherTest.java.
Where is writePacket() defined?
writePacket() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicCodecDispatcherTest.java at line 91.
What calls writePacket()?
writePacket() is called by 1 function(s): testPacketsAreDispatchedToCorrectChannel.

Analyze Your Own Codebase

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

Try Supermodel Free