1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-25 15:43:13 +03:00
Files
mvfst/quic/logging/BaseQLogger.h
Hani Damlaj 00e67c1bf9 mvfst License Header Update
Reviewed By: lnicco

Differential Revision: D33587012

fbshipit-source-id: 972eb440f0156c9c04aa6e8787561b18295c1a97
2022-01-18 13:56:12 -08:00

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