QuicPacketType Type — netty Architecture
Architecture documentation for the QuicPacketType type/interface in QuicPacketType.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5b4de4d4_b45e_37d1_2dd2_f2e926600fe7["QuicPacketType"] 9ebe13d8_a00a_b0f8_5bb3_541db534cc79["QuicPacketType.java"] 5b4de4d4_b45e_37d1_2dd2_f2e926600fe7 -->|defined in| 9ebe13d8_a00a_b0f8_5bb3_541db534cc79 style 5b4de4d4_b45e_37d1_2dd2_f2e926600fe7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicPacketType.java lines 22–77
public enum QuicPacketType {
/**
* Initial packet.
*/
INITIAL,
/**
* Retry packet.
*/
RETRY,
/**
* Handshake packet.
*/
HANDSHAKE,
/**
* 0-RTT packet.
*/
ZERO_RTT,
/**
* 1-RTT short header packet.
*/
SHORT,
/**
* Version negotiation packet.
*/
VERSION_NEGOTIATION;
/**
* Return the {@link QuicPacketType} for the given byte.
*
* @param type the byte that represent the type.
* @return the {@link QuicPacketType}.
*/
static QuicPacketType of(byte type) {
switch(type) {
case 1:
return INITIAL;
case 2:
return RETRY;
case 3:
return HANDSHAKE;
case 4:
return ZERO_RTT;
case 5:
return SHORT;
case 6:
return VERSION_NEGOTIATION;
default:
throw new IllegalArgumentException("Unknown QUIC packet type: " + type);
}
}
}
Source
Frequently Asked Questions
What is the QuicPacketType type?
QuicPacketType is a type/interface in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicPacketType.java.
Where is QuicPacketType defined?
QuicPacketType is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicPacketType.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free