SOLA
Loading...
Searching...
No Matches
bootstrap_discover.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef MINHTON_MESSAGE_BOOTSTRAP_DISCOVER_H_
8#define MINHTON_MESSAGE_BOOTSTRAP_DISCOVER_H_
9
10#include "minhton/message/message.h"
11#include "solanet/serializer/serialize.h"
12
13namespace minhton {
18class MessageBootstrapDiscover : public MinhtonMessage<MessageBootstrapDiscover> {
19public:
22 std::string discovery_msg = "Hello");
23
24 std::string getDiscoveryMessage() const;
25
26 SERIALIZE(header_, discovery_msg_);
27
28 MessageBootstrapDiscover() = default;
29
30private:
31 friend MinhtonMessage;
32
35
37 bool validateImpl() const;
38
39 std::string discovery_msg_;
40};
41} // namespace minhton
42
43#endif
Usage: A node wants to join the network but does not have access to a node's network information to s...
Definition bootstrap_discover.h:18
Definition message_header.h:24
Definition message.h:28
Definition minhton_watchdog_ns3.cpp:24