blob: 1ed8a46fa048e70726de4558be9f7895c9501025 [file] [log] [blame]
wubf975eac2019-08-19 19:41:01 -07001// Copyright (c) 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef QUICHE_QUIC_QBONE_QBONE_PACKET_WRITER_H_
6#define QUICHE_QUIC_QBONE_QBONE_PACKET_WRITER_H_
7
8#include <cstring>
9
10namespace quic {
11
12// QbonePacketWriter expects only one function to be defined,
13// WritePacketToNetwork, which is called when a packet is received via QUIC
14// and should be sent out on the network. This is the complete packet,
15// and not just a fragment.
16class QbonePacketWriter {
17 public:
18 virtual ~QbonePacketWriter() {}
19 virtual void WritePacketToNetwork(const char* packet, size_t size) = 0;
20};
21
22} // namespace quic
23
24#endif // QUICHE_QUIC_QBONE_QBONE_PACKET_WRITER_H_