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
10
namespace
NetherNet {
struct
NetworkID
; }
11
namespace
rtc {
class
SocketAddress
; }
12
// clang-format on
13
14
namespace
NetherNet {
15
16
class
PeerRecordTable :
public
::NetherNet::ContextProxy
{
17
public
:
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
28
::ll::UntypedStorage<8, 8>
mUnk6d0d23;
29
::ll::UntypedStorage<8, 80>
mUnkabaa69;
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
51
public
:
52
// member variables
53
// NOLINTBEGIN
54
::ll::UntypedStorage<8, 96>
mUnkdc67f9;
55
// NOLINTEND
56
57
public
:
58
// prevent constructor by default
59
PeerRecordTable& operator=(PeerRecordTable
const
&);
60
PeerRecordTable(PeerRecordTable
const
&);
61
PeerRecordTable();
62
63
public
:
64
// virtual functions
65
// NOLINTBEGIN
66
virtual
~PeerRecordTable()
/*override*/
;
67
// NOLINTEND
68
69
public
:
70
// member functions
71
// NOLINTBEGIN
72
MCNAPI
bool
AddOrUpdate
(
73
::NetherNet::NetworkID
networkID,
74
::rtc::SocketAddress
const
& address,
75
::std::chrono::steady_clock::time_point timeOfDiscovery
76
);
77
78
MCNAPI
bool
Contains
(
::NetherNet::NetworkID
networkID);
79
80
MCNAPI
bool
Find
(
::NetherNet::NetworkID
networkID,
::rtc::SocketAddress
* pOut);
81
82
MCNAPI
explicit
PeerRecordTable
(
::NetherNet::ContextProxy
const
&
ctx
);
83
// NOLINTEND
84
85
public
:
86
// static functions
87
// NOLINTBEGIN
88
MCNAPI static ::std::vector<::std::pair<::NetherNet::NetworkID, ::NetherNet::PeerRecordTable::PeerRecord>>
89
RemoveExpiredRecords
(
90
::NetherNet::Utils::ThreadSafe
<
91
::std::map<::NetherNet::NetworkID, ::NetherNet::PeerRecordTable::PeerRecord>>
::View
const
& exclusiveTable
92
);
93
// NOLINTEND
94
95
public
:
96
// constructor thunks
97
// NOLINTBEGIN
98
MCNAPI
void
*
$ctor
(
::NetherNet::ContextProxy
const
&
ctx
);
99
// NOLINTEND
100
101
public
:
102
// destructor thunk
103
// NOLINTBEGIN
104
MCNAPI
void
$dtor
();
105
// NOLINTEND
106
107
public
:
108
// vftables
109
// NOLINTBEGIN
110
MCNAPI
static
void
**
$vftable
();
111
// NOLINTEND
112
};
113
114
}
// namespace NetherNet
NetherNet::ContextProxy
Definition
ContextProxy.h:18
NetherNet::PeerRecordTable::Find
MCAPI bool Find(::NetherNet::NetworkID networkID, ::rtc::SocketAddress *pOut)
NetherNet::PeerRecordTable::PeerRecordTable
MCAPI PeerRecordTable(::NetherNet::ContextProxy const &ctx)
NetherNet::PeerRecordTable::$vftable
static MCAPI void ** $vftable()
NetherNet::PeerRecordTable::RemoveExpiredRecords
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)
NetherNet::PeerRecordTable::AddOrUpdate
MCAPI bool AddOrUpdate(::NetherNet::NetworkID networkID, ::rtc::SocketAddress const &address, ::std::chrono::steady_clock::time_point timeOfDiscovery)
NetherNet::PeerRecordTable::$ctor
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx)
NetherNet::PeerRecordTable::$dtor
MCAPI void $dtor()
NetherNet::PeerRecordTable::Contains
MCAPI bool Contains(::NetherNet::NetworkID networkID)
NetherNet::Utils::ThreadSafe
Definition
_HeaderOutputPredefine.h:373
rtc::SocketAddress
Definition
SocketAddress.h:12
NetherNet::NetworkID
Definition
NetworkID.h:17
NetherNet::PeerRecordTable::PeerRecord
Definition
PeerRecordTable.h:24
NetherNet::PeerRecordTable::PeerRecord::~PeerRecord
MCAPI ~PeerRecord()
NetherNet::PeerRecordTable::PeerRecord::$dtor
MCAPI void $dtor()
NetherNet::View
Definition
View.h:7
ctx
Definition
ctx.h:5
ll::UntypedStorage
Definition
Alias.h:14
src
mc
deps
nether_net
lan
PeerRecordTable.h
Generated on
for LeviLamina by
1.16.1