mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
19 lines
409 B
C++
19 lines
409 B
C++
#ifndef LLARP_LINK_ENCODER_HPP
|
|
#define LLARP_LINK_ENCODER_HPP
|
|
|
|
struct llarp_buffer_t;
|
|
|
|
namespace llarp
|
|
{
|
|
struct KeyExchangeNonce;
|
|
class RouterContact;
|
|
|
|
/// 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);
|
|
} // namespace llarp
|
|
|
|
#endif
|