SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
message
lock_neighbor_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_LOCK_NEIGHBOR_RESPONSE_H_
8
#define MINHTON_MESSAGE_LOCK_NEIGHBOR_RESPONSE_H_
9
10
#include "minhton/message/message.h"
11
#include "solanet/serializer/serialize.h"
12
13
namespace
minhton
{
17
class
MessageLockNeighborResponse
:
public
MinhtonMessage
<MessageLockNeighborResponse> {
18
public
:
20
explicit
MessageLockNeighborResponse
(
MinhtonMessageHeader
header,
bool
successful =
false
);
21
22
bool
wasSuccessful()
const
;
23
24
SERIALIZE(header_, successful_);
25
26
MessageLockNeighborResponse
() =
default
;
27
28
private
:
29
friend
MinhtonMessage
;
30
32
MinhtonMessageHeader
header_;
33
35
bool
validateImpl()
const
;
36
37
bool
successful_ =
false
;
38
};
39
}
// namespace minhton
40
41
#endif
minhton::MessageLockNeighborResponse
Usage: The answer to a MessageLockNeighborRequest, received by the parent of a successor node.
Definition
lock_neighbor_response.h:17
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