mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-24 04:01:07 +03:00
Reviewed By: lnicco Differential Revision: D33587012 fbshipit-source-id: 972eb440f0156c9c04aa6e8787561b18295c1a97
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and 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/logging/QLogger.h>
|
|
#include <quic/logging/QLoggerConstants.h>
|
|
#include <quic/logging/QLoggerTypes.h>
|
|
|
|
namespace quic {
|
|
|
|
class BaseQLogger : public QLogger {
|
|
public:
|
|
explicit BaseQLogger(VantagePoint vantagePointIn, std::string protocolTypeIn)
|
|
: QLogger(vantagePointIn, std::move(protocolTypeIn)) {}
|
|
|
|
~BaseQLogger() override = default;
|
|
|
|
protected:
|
|
std::unique_ptr<QLogPacketEvent> createPacketEvent(
|
|
const RegularQuicPacket& regularPacket,
|
|
uint64_t packetSize);
|
|
|
|
std::unique_ptr<QLogPacketEvent> createPacketEvent(
|
|
const RegularQuicWritePacket& writePacket,
|
|
uint64_t packetSize);
|
|
|
|
std::unique_ptr<QLogVersionNegotiationEvent> createPacketEvent(
|
|
const VersionNegotiationPacket& versionPacket,
|
|
uint64_t packetSize,
|
|
bool isPacketRecvd);
|
|
|
|
std::unique_ptr<QLogRetryEvent> createPacketEvent(
|
|
const RetryPacket& retryPacket,
|
|
uint64_t packetSize,
|
|
bool isPacketRecvd);
|
|
};
|
|
} // namespace quic
|