LeviLamina
Loading...
Searching...
No Matches
LocalConnector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/Connector.h"
7#include "mc/network/NetworkIdentifier.h"
8#include "mc/network/TransportLayer.h"
9
10// auto generated forward declare list
11// clang-format off
13namespace Social { class GameConnectionInfo; }
14// clang-format on
15
16class LocalConnector : public ::Connector, public ::std::enable_shared_from_this<::LocalConnector> {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 80, ::std::mutex> mMutex;
21 ::ll::TypedStorage<8, 176, ::NetworkIdentifier> mLocalId;
22 ::ll::TypedStorage<8, 64, ::std::unordered_map<::NetworkIdentifier, ::std::weak_ptr<::LocalConnector>>>
23 mConnectionsMap;
24 ::ll::TypedStorage<8, 24, ::std::vector<::std::function<void()>>> mCallbackQueue;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~LocalConnector() /*override*/;
31
32 virtual ::std::string getLocalIp() /*override*/;
33
34 virtual ushort getPort() const /*override*/;
35
36 virtual ::Social::GameConnectionInfo const& getConnectedGameInfo() const /*override*/;
37
38 virtual bool isIPv4Supported() const /*override*/;
39
40 virtual bool isIPv6Supported() const /*override*/;
41
42 virtual ushort getIPv4Port() const /*override*/;
43
44 virtual ushort getIPv6Port() const /*override*/;
45
46 virtual ::TransportLayer getNetworkType() const /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52#ifdef LL_PLAT_C
53 MCNAPI bool connect(::NetworkIdentifier const& id);
54
55 MCNAPI void disconnect(bool skipMessage);
56#endif
57
58 MCNAPI void runEvents();
59 // NOLINTEND
60
61public:
62 // static variables
63 // NOLINTBEGIN
64 MCNAPI static ::LocalConnectivitySystem& sLocalConnectivitySystem();
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCNAPI void $dtor();
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76 MCNAPI ::std::string $getLocalIp();
77
78 MCNAPI ushort $getPort() const;
79
80 MCNAPI ::Social::GameConnectionInfo const& $getConnectedGameInfo() const;
81
82 MCNAPI bool $isIPv4Supported() const;
83
84 MCNAPI bool $isIPv6Supported() const;
85
86 MCNAPI ushort $getIPv4Port() const;
87
88 MCNAPI ushort $getIPv6Port() const;
89
90 MCNAPI ::TransportLayer $getNetworkType() const;
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition LocalConnectivitySystem.h:5
Definition LocalConnector.h:16
MCAPI ushort $getIPv6Port() const
MCAPI void $dtor()
MCAPI bool $isIPv6Supported() const
MCAPI bool $isIPv4Supported() const
MCAPI void runEvents()
MCAPI ushort $getIPv4Port() const
MCAPI ushort $getPort() const
MCAPI::TransportLayer $getNetworkType() const
MCAPI::std::string $getLocalIp()
static MCAPI void ** $vftable()
MCAPI::Social::GameConnectionInfo const & $getConnectedGameInfo() const
static MCAPI ::LocalConnectivitySystem & sLocalConnectivitySystem()
Definition NetworkIdentifier.h:10
Definition GameConnectionInfo.h:24