mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
46ad8d4058
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use - shuffled around some cmake linking to simplify dependency graph - superfluous files removed
27 lines
437 B
C++
27 lines
437 B
C++
#pragma once
|
|
|
|
#include "protocol.hpp"
|
|
|
|
#include <llarp/util/buffer.hpp>
|
|
|
|
#include <vector>
|
|
|
|
namespace llarp::service
|
|
{
|
|
struct PendingBuffer
|
|
{
|
|
std::vector<byte_t> payload;
|
|
ProtocolType protocol;
|
|
|
|
inline llarp_buffer_t
|
|
Buffer()
|
|
{
|
|
return llarp_buffer_t{payload};
|
|
}
|
|
|
|
PendingBuffer(const llarp_buffer_t& buf, ProtocolType t) : payload{buf.copy()}, protocol{t}
|
|
{}
|
|
};
|
|
|
|
} // namespace llarp::service
|