shouldSupportIncompletePackets() — netty Function Reference
Architecture documentation for the shouldSupportIncompletePackets() function in SslUtilsTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 95a29074_972d_9ed1_7aaa_ddede67cfdc7["shouldSupportIncompletePackets()"] 48820ee9_de8c_874d_12df_29f6fb10052e["SslUtilsTest"] 95a29074_972d_9ed1_7aaa_ddede67cfdc7 -->|defined in| 48820ee9_de8c_874d_12df_29f6fb10052e style 95a29074_972d_9ed1_7aaa_ddede67cfdc7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java lines 153–167
@ParameterizedTest
@ValueSource(ints = {DTLS_1_0, DTLS_1_2, DTLS_1_3}) // six numbers
public void shouldSupportIncompletePackets(int dtlsVersion) {
ByteBuf buf = Unpooled.buffer()
.writeByte(SslUtils.SSL_CONTENT_TYPE_HANDSHAKE)
.writeShort(dtlsVersion)
.writeShort(0) // epoch
.writeBytes(new byte[6]) // sequence number
.writeByte(0);
// Left off the last byte of the length on purpose
int packetLength = getEncryptedPacketLength(buf, 0, true);
assertEquals(NOT_ENOUGH_DATA, packetLength);
buf.release();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shouldSupportIncompletePackets() do?
shouldSupportIncompletePackets() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java.
Where is shouldSupportIncompletePackets() defined?
shouldSupportIncompletePackets() is defined in handler/src/test/java/io/netty/handler/ssl/SslUtilsTest.java at line 153.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free