SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
message
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
13
namespace
minhton
{
18
class
MessageBootstrapResponse
:
public
MinhtonMessage
<MessageBootstrapResponse> {
19
public
:
22
MessageBootstrapResponse
(
MinhtonMessageHeader
header,
NodeInfo
node_to_join);
23
24
minhton::NodeInfo
getNodeToJoin()
const
;
25
26
SERIALIZE(header_, node_to_join_);
27
28
MessageBootstrapResponse
() =
default
;
29
30
private
:
31
friend
MinhtonMessage
;
32
34
MinhtonMessageHeader
header_;
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
minhton::MessageBootstrapResponse
Usage: After receiving a MessageBootstrapDiscover, the node receiving the message might answer with a...
Definition
bootstrap_response.h:18
minhton::MinhtonMessageHeader
Definition
message_header.h:24
minhton::MinhtonMessage
Definition
message.h:28
minhton::NodeInfo
Definition
node_info.h:24
minhton
Definition
minhton_watchdog_ns3.cpp:24
Generated by
1.9.8