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/TransportLayer.h"
8
9// auto generated forward declare list
10// clang-format off
13namespace Social { class GameConnectionInfo; }
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 LocalConnector& operator=(LocalConnector const&);
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~LocalConnector() /*override*/ = default;
37
38 // vIndex: 1
39 virtual ::std::string getLocalIp() /*override*/;
40
41 // vIndex: 2
42 virtual ushort getPort() const /*override*/;
43
44 // vIndex: 3
45 virtual ::Social::GameConnectionInfo const& getConnectedGameInfo() const /*override*/;
46
47 // vIndex: 4
48 virtual bool isIPv4Supported() const /*override*/;
49
50 // vIndex: 5
51 virtual bool isIPv6Supported() const /*override*/;
52
53 // vIndex: 6
54 virtual ushort getIPv4Port() const /*override*/;
55
56 // vIndex: 7
57 virtual ushort getIPv6Port() const /*override*/;
58
59 // vIndex: 8
60 virtual ::TransportLayer getNetworkType() const /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
67
68 MCNAPI void disconnect();
69
70 MCNAPI void onRemoteDisconnected(::LocalConnector& otherConnector);
71
72 MCNAPI void runEvents();
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCNAPI static ::LocalConnectivitySystem& sLocalConnectivitySystem();
79 // NOLINTEND
80
81public:
82 // constructor thunks
83 // NOLINTBEGIN
84 MCNAPI void* $ctor(::Connector::ConnectionCallbacks& callbacks, ::NetworkIdentifier const& localId);
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCNAPI ::std::string $getLocalIp();
91
92 MCNAPI ushort $getPort() const;
93
94 MCNAPI ::Social::GameConnectionInfo const& $getConnectedGameInfo() const;
95
96 MCNAPI bool $isIPv4Supported() const;
97
98 MCNAPI bool $isIPv6Supported() const;
99
100 MCNAPI ushort $getIPv4Port() const;
101
102 MCNAPI ushort $getIPv6Port() const;
103
104 MCNAPI ::TransportLayer $getNetworkType() const;
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition Connector.h:16
Definition LocalConnectivitySystem.h:5
Definition LocalConnector.h:16
MCAPI void * $ctor(::Connector::ConnectionCallbacks &callbacks, ::NetworkIdentifier const &localId)
MCAPI ushort $getIPv6Port() const
MCAPI bool $isIPv6Supported() const
MCAPI bool $isIPv4Supported() const
MCAPI void disconnect()
MCAPI LocalConnector(::Connector::ConnectionCallbacks &callbacks, ::NetworkIdentifier const &localId)
MCAPI void runEvents()
MCAPI ushort $getIPv4Port() const
MCAPI ushort $getPort() const
MCAPI::TransportLayer $getNetworkType() const
MCAPI::std::string $getLocalIp()
static MCAPI void ** $vftable()
MCAPI void onRemoteDisconnected(::LocalConnector &otherConnector)
MCAPI::Social::GameConnectionInfo const & $getConnectedGameInfo() const
static MCAPI ::LocalConnectivitySystem & sLocalConnectivitySystem()
Definition NetworkIdentifier.h:10
Definition Connector.h:24
Definition Alias.h:14