blob: 1ed8a46fa048e70726de4558be9f7895c9501025 [file] [log] [blame]
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cstring>
namespace quic {
// QbonePacketWriter expects only one function to be defined,
// WritePacketToNetwork, which is called when a packet is received via QUIC
// and should be sent out on the network. This is the complete packet,
// and not just a fragment.
class QbonePacketWriter {
virtual ~QbonePacketWriter() {}
virtual void WritePacketToNetwork(const char* packet, size_t size) = 0;
} // namespace quic