SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
message
inform_about_neighbors.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_INFORM_ABOUT_NEIGHBORS_H_
8
#define MINHTON_MESSAGE_INFORM_ABOUT_NEIGHBORS_H_
9
10
#include "minhton/message/message.h"
11
#include "solanet/serializer/serialize.h"
12
13
namespace
minhton
{
18
class
MessageInformAboutNeighbors
:
public
MinhtonMessage
<MessageInformAboutNeighbors> {
19
public
:
22
MessageInformAboutNeighbors
(
MinhtonMessageHeader
header, std::vector<NodeInfo> neighbors);
23
24
std::vector<NodeInfo> getRequestedNeighbors()
const
;
25
26
SERIALIZE(header_, neighbors_);
27
28
MessageInformAboutNeighbors
() =
default
;
29
30
private
:
31
friend
MinhtonMessage
;
32
34
MinhtonMessageHeader
header_;
35
37
bool
validateImpl()
const
;
38
40
std::vector<NodeInfo> neighbors_;
41
};
42
}
// namespace minhton
43
44
#endif
minhton::MessageInformAboutNeighbors
Usage: This message is an answer to a MessageGetNeighbors. It contains the node information about the...
Definition
inform_about_neighbors.h:18
minhton::MinhtonMessageHeader
Definition
message_header.h:24
minhton::MinhtonMessage
Definition
message.h:28
minhton
Definition
minhton_watchdog_ns3.cpp:24
Generated by
1.9.8