2018-05-26 18:31:45 +00:00
|
|
|
#ifndef LLARP_LINK_ENCODER_HPP
|
|
|
|
#define LLARP_LINK_ENCODER_HPP
|
|
|
|
|
2019-01-13 16:30:07 +00:00
|
|
|
struct llarp_buffer_t;
|
2019-01-10 19:41:51 +00:00
|
|
|
|
2018-05-26 18:31:45 +00:00
|
|
|
namespace llarp
|
|
|
|
{
|
2019-01-13 16:30:07 +00:00
|
|
|
struct KeyExchangeNonce;
|
|
|
|
class RouterContact;
|
|
|
|
|
2018-05-26 18:31:45 +00:00
|
|
|
/// encode Link Introduce Message onto a buffer
|
|
|
|
/// if router is nullptr then the LIM's r member is omitted.
|
|
|
|
bool
|
2018-09-04 12:41:25 +00:00
|
|
|
EncodeLIM(llarp_buffer_t* buff, const RouterContact* router,
|
|
|
|
const KeyExchangeNonce& n);
|
2018-07-09 03:08:41 +00:00
|
|
|
} // namespace llarp
|
2018-05-26 18:31:45 +00:00
|
|
|
|
|
|
|
#endif
|