SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
message
search_exact_failure.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_SEARCH_EXACT_FAILURE_H_
8
#define MINHTON_MESSAGE_SEARCH_EXACT_FAILURE_H_
9
10
#include "minhton/message/message.h"
11
#include "minhton/message/se_types.h"
12
#include "solanet/serializer/serialize.h"
13
14
namespace
minhton
{
18
class
MessageSearchExactFailure
:
public
MinhtonMessage
<MessageSearchExactFailure> {
19
public
:
25
MessageSearchExactFailure
(
MinhtonMessageHeader
header,
NodeInfo
destination_node,
26
std::shared_ptr<MessageSEVariant> query);
27
28
minhton::NodeInfo
getDestinationNode()
const
;
29
std::shared_ptr<MessageSEVariant> getQuery()
const
;
30
31
SERIALIZE(header_, destination_node_, query_);
32
33
MessageSearchExactFailure
() =
default
;
34
35
private
:
36
friend
MinhtonMessage
;
37
39
MinhtonMessageHeader
header_;
40
42
bool
validateImpl()
const
;
43
46
minhton::NodeInfo
destination_node_;
47
51
std::shared_ptr<MessageSEVariant> query_;
52
};
53
}
// namespace minhton
54
55
#endif
minhton::MessageSearchExactFailure
Usage: If a node cannot further forward a MessageSearchExact, but is also not the target node,...
Definition
search_exact_failure.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