You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/service/protocol.cpp

37 lines
720 B
C++

#include <llarp/service/protocol.hpp>
namespace llarp
{
namespace service
{
ProtocolMessage::ProtocolMessage(ProtocolType t, uint64_t seqno)
: proto(t), sequenceNum(seqno)
{
}
ProtocolMessage::~ProtocolMessage()
{
}
bool
ProtocolMessage::BEncode(llarp_buffer_t* buf) const
{
// TODO: implement me
return false;
}
bool
ProtocolMessage::DecodeKey(llarp_buffer_t key, llarp_buffer_t* val)
{
// TODO: implement me
return false;
}
void
ProtocolMessage::PutBuffer(llarp_buffer_t buf)
{
payload.resize(buf.sz);
memcpy(payload.data(), buf.base, buf.sz);
}
} // namespace service
} // namespace llarp