SOLA
Loading...
Searching...
No Matches
connection_info.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_CORE_CONNECTION_INFO_H_
8#define MINHTON_CORE_CONNECTION_INFO_H_
9
10#include <functional>
11
12#include "minhton/core/constants.h"
13#include "minhton/core/node_info.h"
14
15namespace minhton {
16
19 NeighborRelationship relationship;
20 std::string ip_old;
21 uint16_t port_old = 0;
22 uint16_t position = 0;
23 minhton::NodeInfo ourself;
24};
25
26using NeighborCallbackFct = std::function<void(const ConnectionInfo &neighbor)>;
27
28} // namespace minhton
29
30#endif
Definition node_info.h:24
Definition minhton_watchdog_ns3.cpp:24
Definition connection_info.h:17