LeviLamina
Loading...
Searching...
No Matches
PeerRecordTable.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ContextProxy.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace NetherNet { struct NetworkID; }
11namespace rtc { class SocketAddress; }
12// clang-format on
13
14namespace NetherNet {
15
17public:
18 // PeerRecordTable inner types declare
19 // clang-format off
20 struct PeerRecord;
21 // clang-format on
22
23 // PeerRecordTable inner types define
24 struct PeerRecord {
25 public:
26 // member variables
27 // NOLINTBEGIN
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 PeerRecord& operator=(PeerRecord const&);
35 PeerRecord(PeerRecord const&);
36 PeerRecord();
37
38 public:
39 // member functions
40 // NOLINTBEGIN
41 MCNAPI ~PeerRecord();
42 // NOLINTEND
43
44 public:
45 // destructor thunk
46 // NOLINTBEGIN
47 MCNAPI void $dtor();
48 // NOLINTEND
49 };
50
51public:
52 // member variables
53 // NOLINTBEGIN
55 // NOLINTEND
56
57public:
58 // prevent constructor by default
59 PeerRecordTable& operator=(PeerRecordTable const&);
62
63public:
64 // virtual functions
65 // NOLINTBEGIN
66 // vIndex: 0
67 virtual ~PeerRecordTable() /*override*/ = default;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCNAPI bool AddOrUpdate(
74 ::NetherNet::NetworkID networkID,
75 ::rtc::SocketAddress const& address,
76 ::std::chrono::steady_clock::time_point timeOfDiscovery
77 );
78 // NOLINTEND
79
80public:
81 // static functions
82 // NOLINTBEGIN
83 MCNAPI static ::std::vector<::std::pair<::NetherNet::NetworkID, ::NetherNet::PeerRecordTable::PeerRecord>>
86 ::std::map<::NetherNet::NetworkID, ::NetherNet::PeerRecordTable::PeerRecord>>::View const& exclusiveTable
87 );
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
96
97} // namespace NetherNet
Definition ContextProxy.h:18
Definition PeerRecordTable.h:16
static MCAPI void ** $vftable()
static MCAPI ::std::vector<::std::pair<::NetherNet::NetworkID, ::NetherNet::PeerRecordTable::PeerRecord > > RemoveExpiredRecords(::NetherNet::Utils::ThreadSafe< ::std::map<::NetherNet::NetworkID, ::NetherNet::PeerRecordTable::PeerRecord > >::View const &exclusiveTable)
MCAPI bool AddOrUpdate(::NetherNet::NetworkID networkID, ::rtc::SocketAddress const &address, ::std::chrono::steady_clock::time_point timeOfDiscovery)
Definition _HeaderOutputPredefine.h:250
Definition SocketAddress.h:12
Definition NetworkID.h:12
Definition PeerRecordTable.h:24
Definition Alias.h:14