SOLA
Loading...
Searching...
No Matches
signoff_parent_answer.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_SIGNOFF_PARENT_ANSWER_H_
8#define MINHTON_MESSAGE_SIGNOFF_PARENT_ANSWER_H_
9
10#include "minhton/message/message.h"
11#include "solanet/serializer/serialize.h"
12
13namespace minhton {
17class MessageSignoffParentAnswer : public MinhtonMessage<MessageSignoffParentAnswer> {
18public:
20 explicit MessageSignoffParentAnswer(MinhtonMessageHeader header, bool successful = false);
21
22 bool wasSuccessful() const;
23
24 SERIALIZE(header_, successful_);
25
27
28private:
29 friend MinhtonMessage;
30
33
35 bool validateImpl() const;
36
38 bool successful_ = false;
39};
40} // namespace minhton
41
42#endif
Usage: The successor node waits for the MessageSignoffParentAnswer from its parent after sending a Me...
Definition signoff_parent_answer.h:17
Definition message_header.h:24
Definition message.h:28
Definition minhton_watchdog_ns3.cpp:24