SOLA
Loading...
Searching...
No Matches
find_query_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_FIND_QUERY_ANSWER_H_
8#define MINHTON_MESSAGE_FIND_QUERY_ANSWER_H_
9
10#include <unordered_map>
11#include <vector>
12
13#include "minhton/algorithms/esearch/node_data.h"
14#include "minhton/core/node_info.h"
15#include "minhton/message/message.h"
16#include "solanet/serializer/serialize.h"
17
18namespace minhton {
22class MessageFindQueryAnswer : public MinhtonMessage<MessageFindQueryAnswer> {
23public:
27 NodeData::NodesWithAttributes nodes_with_attributes);
28
29 NodeData::NodesWithAttributes getFulfillingNodesWithAttributes() const;
30
31 SERIALIZE(header_, nodes_with_attributes_);
32
33 MessageFindQueryAnswer() = default;
34
35private:
36 friend MinhtonMessage;
37
40
42 bool validateImpl() const;
43
44 NodeData::NodesWithAttributes nodes_with_attributes_;
45};
46} // namespace minhton
47
48#endif
Usage: A DSN sends a MessageFindQueryAnswer back to the requesting node (that sent this DSN a Message...
Definition find_query_answer.h:22
Definition message_header.h:24
Definition message.h:28
Definition minhton_watchdog_ns3.cpp:24