Home / File/ QuicheConfig.java — netty Source File

QuicheConfig.java — netty Source File

Architecture documentation for QuicheConfig.java, a java file in the netty codebase.

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2020 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.handler.codec.quic;

import org.jetbrains.annotations.Nullable;

final class QuicheConfig {
    private final boolean isDatagramSupported;
    private long config = -1;

    QuicheConfig(int version,
                 @Nullable Boolean grease,
                 @Nullable Long maxIdleTimeout,
                 @Nullable Long maxSendUdpPayloadSize,
                 @Nullable Long maxRecvUdpPayloadSize,
                 @Nullable Long initialMaxData,
                 @Nullable Long initialMaxStreamDataBidiLocal,
                 @Nullable Long initialMaxStreamDataBidiRemote,
                 @Nullable Long initialMaxStreamDataUni,
                 @Nullable Long initialMaxStreamsBidi,
                 @Nullable Long initialMaxStreamsUni,
                 @Nullable Long ackDelayExponent,
                 @Nullable Long maxAckDelay,
                 @Nullable Boolean disableActiveMigration,
                 @Nullable Boolean enableHystart,
                 @Nullable Boolean discoverPmtu,
                 @Nullable QuicCongestionControlAlgorithm congestionControlAlgorithm,
                 @Nullable Integer initialCongestionWindowPackets,
                 @Nullable Integer recvQueueLen,
                 @Nullable Integer sendQueueLen,
                 @Nullable Long activeConnectionIdLimit,
                 byte @Nullable [] statelessResetToken) {
        long config = Quiche.quiche_config_new(version);
        try {
            if (grease != null) {
                Quiche.quiche_config_grease(config, grease);
            }
            if (maxIdleTimeout != null) {
                Quiche.quiche_config_set_max_idle_timeout(config, maxIdleTimeout);
            }
            if (maxSendUdpPayloadSize != null) {
                Quiche.quiche_config_set_max_send_udp_payload_size(config, maxSendUdpPayloadSize);
            }
            if (maxRecvUdpPayloadSize != null) {
                Quiche.quiche_config_set_max_recv_udp_payload_size(config, maxRecvUdpPayloadSize);
            }
            if (initialMaxData != null) {
// ... (100 more lines)

Domain

Subdomains

Classes

Frequently Asked Questions

What does QuicheConfig.java do?
QuicheConfig.java is a source file in the netty codebase, written in java. It belongs to the Buffer domain, Allocators subdomain.
Where is QuicheConfig.java in the architecture?
QuicheConfig.java is located at codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheConfig.java (domain: Buffer, subdomain: Allocators, directory: codec-classes-quic/src/main/java/io/netty/handler/codec/quic).

Analyze Your Own Codebase

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

Try Supermodel Free