lokinet/llarp/link/encoder.hpp

18 lines
424 B
C++
Raw Normal View History

#ifndef LLARP_LINK_ENCODER_HPP
#define LLARP_LINK_ENCODER_HPP
#include <llarp/bencode.h>
#include <llarp/buffer.h>
2018-08-30 18:48:43 +00:00
#include <llarp/router_contact.hpp>
namespace llarp
{
/// encode Link Introduce Message onto a buffer
/// if router is nullptr then the LIM's r member is omitted.
bool
EncodeLIM(llarp_buffer_t* buff, const RouterContact* router,
const KeyExchangeNonce& n);
2018-07-09 03:08:41 +00:00
} // namespace llarp
#endif