LeviLamina
Loading...
Searching...
No Matches
SystemAddress.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace RakNet {
6
7struct SystemAddress {
8public:
9 // member variables
10 // NOLINTBEGIN
11 union {
15 } address;
16 ushort debugPort;
17 ushort systemIndex;
18 // NOLINTEND
19
20 LLNDAPI bool operator==(SystemAddress const& other) const;
21
22public:
23 // prevent constructor by default
24 SystemAddress(SystemAddress const&) = default;
25
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI void FixForIPVersion(::RakNet::SystemAddress const& boundAddressToSocket);
31
32 MCAPI bool FromString(char const* str, char portDelineator, int ipVersion);
33
34 MCAPI bool FromStringExplicitPort(char const* str, ushort port, int ipVersion);
35
36 MCAPI ::std::string GetIPString() const;
37
38 MCAPI uchar GetIPVersion() const;
39
40 MCAPI ushort GetPort() const;
41
42#ifdef LL_PLAT_S
43 MCFOLD ushort GetPortNetworkOrder() const;
44#endif
45
46 MCAPI bool IsLinkLocalAddress() const;
47
48 MCAPI bool IsLoopback() const;
49
50 MCAPI void SetPortHostOrder(ushort s);
51
52 MCAPI SystemAddress();
53
54 MCAPI ::std::string ToString(char portDelineator) const;
55
56 MCAPI void ToString(bool writePort, char* dest, char portDelineator) const;
57
58 MCAPI bool operator!=(::RakNet::SystemAddress const& right) const;
59
60 MCAPI ::RakNet::SystemAddress& operator=(::RakNet::SystemAddress const& input);
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor();
67 // NOLINTEND
68};
69
70} // namespace RakNet
Definition SystemAddress.h:7
Definition Alias.h:14