1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/link/encoder.hpp
Jeff Becker 5228a81bae
more refactor
get rid of C api
2018-08-30 14:48:43 -04:00

16 lines
385 B
C++

#ifndef LLARP_LINK_ENCODER_HPP
#define LLARP_LINK_ENCODER_HPP
#include <llarp/bencode.h>
#include <llarp/buffer.h>
#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);
} // namespace llarp
#endif