LeviLamina
Loading...
Searching...
No Matches
Connector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/TransportLayer.h"
7#include "mc/network/connection/DisconnectFailReason.h"
8
9// auto generated forward declare list
10// clang-format off
12class NetworkPeer;
13namespace Social { class GameConnectionInfo; }
14// clang-format on
15
16class Connector {
17public:
18 // Connector inner types declare
19 // clang-format off
21 // clang-format on
22
23 // Connector inner types define
25 public:
26 // virtual functions
27 // NOLINTBEGIN
28 // vIndex: 0
29 virtual ~ConnectionCallbacks() = default;
30
31 // vIndex: 1
32 virtual bool onNewIncomingConnection(::NetworkIdentifier const&, ::std::shared_ptr<::NetworkPeer>&&) = 0;
33
34 // vIndex: 2
35 virtual bool onNewOutgoingConnection(::NetworkIdentifier const&, ::std::shared_ptr<::NetworkPeer>&&) = 0;
36
37 // vIndex: 3
38 virtual void onConnectionClosed(
40 ::Connection::DisconnectFailReason const,
41 ::std::string const&,
42 bool
43 ) = 0;
44 // NOLINTEND
45
46 public:
47 // destructor thunk
48 // NOLINTBEGIN
49
50 // NOLINTEND
51
52 public:
53 // virtual function thunks
54 // NOLINTBEGIN
55
56 // NOLINTEND
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
63 // NOLINTEND
64
65public:
66 // prevent constructor by default
67 Connector& operator=(Connector const&);
68 Connector(Connector const&);
69 Connector();
70
71public:
72 // virtual functions
73 // NOLINTBEGIN
74 // vIndex: 0
75 virtual ~Connector();
76
77 // vIndex: 1
78 virtual ::std::string getLocalIp();
79
80 // vIndex: 2
81 virtual ushort getPort() const;
82
83 // vIndex: 3
84 virtual ::Social::GameConnectionInfo const& getConnectedGameInfo() const;
85
86 // vIndex: 4
87 virtual bool isIPv4Supported() const;
88
89 // vIndex: 5
90 virtual bool isIPv6Supported() const;
91
92 // vIndex: 6
93 virtual ushort getIPv4Port() const;
94
95 // vIndex: 7
96 virtual ushort getIPv6Port() const;
97
98 // vIndex: 8
99 virtual ::TransportLayer getNetworkType() const;
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCFOLD ::std::string $getLocalIp();
112
113 MCFOLD ushort $getPort() const;
114
115 MCFOLD ::Social::GameConnectionInfo const& $getConnectedGameInfo() const;
116
117 MCFOLD bool $isIPv4Supported() const;
118
119 MCFOLD bool $isIPv6Supported() const;
120
121 MCFOLD ushort $getIPv4Port() const;
122
123 MCFOLD ushort $getIPv6Port() const;
124
125 MCFOLD ::TransportLayer $getNetworkType() const;
126 // NOLINTEND
127
128public:
129 // vftables
130 // NOLINTBEGIN
131 MCAPI static void** $vftable();
132 // NOLINTEND
133};
Definition Connector.h:16
Definition NetworkIdentifier.h:11
Definition NetworkPeer.h:8
Definition Connector.h:24
Definition Alias.h:14