mirror of
https://github.com/facebookincubator/mvfst.git
synced 2026-01-06 03:41:10 +03:00
Extract CachedServerTransportParameters in its own file (#84)
Summary: QuicCachedPsk depends on fizz, CachedServerTransportParameters doesn't, so this is one step further toward separating fizz specific part of the code from the rest. Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/84 Reviewed By: sharma95 Differential Revision: D19386613 Pulled By: udippant fbshipit-source-id: 06bc21108aa7880e1f1820cb8a4c6dbee392c9c4
This commit is contained in:
committed by
Facebook Github Bot
parent
1c9f91d13f
commit
65c8e63208
29
quic/client/handshake/CachedServerTransportParameters.h
Normal file
29
quic/client/handshake/CachedServerTransportParameters.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <quic/QuicConstants.h>
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace quic {
|
||||
|
||||
struct CachedServerTransportParameters {
|
||||
QuicVersion negotiatedVersion;
|
||||
uint64_t idleTimeout;
|
||||
uint64_t maxRecvPacketSize;
|
||||
uint64_t initialMaxData;
|
||||
uint64_t initialMaxStreamDataBidiLocal;
|
||||
uint64_t initialMaxStreamDataBidiRemote;
|
||||
uint64_t initialMaxStreamDataUni;
|
||||
uint64_t initialMaxStreamsBidi;
|
||||
uint64_t initialMaxStreamsUni;
|
||||
};
|
||||
|
||||
} // namespace quic
|
||||
@@ -17,7 +17,6 @@
|
||||
#include <quic/QuicConstants.h>
|
||||
#include <quic/QuicException.h>
|
||||
#include <quic/client/handshake/ClientTransportParametersExtension.h>
|
||||
#include <quic/client/handshake/QuicPskCache.h>
|
||||
#include <quic/handshake/HandshakeLayer.h>
|
||||
#include <quic/state/StateData.h>
|
||||
|
||||
|
||||
@@ -8,28 +8,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <quic/QuicConstants.h>
|
||||
#include <quic/client/handshake/CachedServerTransportParameters.h>
|
||||
|
||||
#include <fizz/client/PskCache.h>
|
||||
#include <folly/Optional.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
namespace quic {
|
||||
|
||||
struct CachedServerTransportParameters {
|
||||
QuicVersion negotiatedVersion;
|
||||
uint64_t idleTimeout;
|
||||
uint64_t maxRecvPacketSize;
|
||||
uint64_t initialMaxData;
|
||||
uint64_t initialMaxStreamDataBidiLocal;
|
||||
uint64_t initialMaxStreamDataBidiRemote;
|
||||
uint64_t initialMaxStreamDataUni;
|
||||
uint64_t initialMaxStreamsBidi;
|
||||
uint64_t initialMaxStreamsUni;
|
||||
};
|
||||
|
||||
struct QuicCachedPsk {
|
||||
fizz::client::CachedPsk cachedPsk;
|
||||
CachedServerTransportParameters transportParams;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <quic/client/state/ClientStateMachine.h>
|
||||
|
||||
#include <folly/io/async/AsyncSocketException.h>
|
||||
#include <quic/client/handshake/ClientHandshake.h>
|
||||
#include <quic/congestion_control/QuicCubic.h>
|
||||
#include <quic/flowcontrol/QuicFlowController.h>
|
||||
#include <quic/handshake/TransportParameters.h>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <folly/io/async/AsyncSocketException.h>
|
||||
#include <quic/client/handshake/CachedServerTransportParameters.h>
|
||||
#include <quic/client/handshake/ClientHandshake.h>
|
||||
#include <quic/client/handshake/ClientHandshakeFactory.h>
|
||||
#include <quic/congestion_control/QuicCubic.h>
|
||||
|
||||
Reference in New Issue
Block a user