mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
28 lines
505 B
C++
28 lines
505 B
C++
#ifndef LLARP_MESSAGES_LINK_INTRO_HPP
|
|
#define LLARP_MESSAGES_LINK_INTRO_HPP
|
|
#include <llarp/link_message.hpp>
|
|
namespace llarp
|
|
{
|
|
struct LinkIntroMessage : public ILinkMessage
|
|
{
|
|
LinkIntroMessage(llarp_rc* rc) : ILinkMessage(), RC(rc)
|
|
{
|
|
}
|
|
|
|
~LinkIntroMessage();
|
|
|
|
llarp_rc* RC;
|
|
|
|
bool
|
|
DecodeKey(llarp_buffer_t key, llarp_buffer_t* buf);
|
|
|
|
bool
|
|
BEncode(llarp_buffer_t* buf) const;
|
|
|
|
bool
|
|
HandleMessage(llarp_router* router) const;
|
|
};
|
|
} // namespace llarp
|
|
|
|
#endif
|