SOLA
Loading...
Searching...
No Matches
bootstrap_response.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_RESPONSE_H_
8#define MINHTON_MESSAGE_BOOTSTRAP_RESPONSE_H_
9
10#include "minhton/message/message.h"
11#include "solanet/serializer/serialize.h"
12
13namespace minhton {
18class MessageBootstrapResponse : public MinhtonMessage<MessageBootstrapResponse> {
19public:
23
24 minhton::NodeInfo getNodeToJoin() const;
25
26 SERIALIZE(header_, node_to_join_);
27
28 MessageBootstrapResponse() = default;
29
30private:
31 friend MinhtonMessage;
32
35
37 bool validateImpl() const;
38
39 // TODO maybe change to an array?!
41 NodeInfo node_to_join_;
42};
43} // namespace minhton
44
45#endif
Usage: After receiving a MessageBootstrapDiscover, the node receiving the message might answer with a...
Definition bootstrap_response.h:18
Definition message_header.h:24
Definition message.h:28
Definition node_info.h:24
Definition minhton_watchdog_ns3.cpp:24