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 // virtual function thunks
48 // NOLINTBEGIN
49
50 // NOLINTEND
51 };
52
53public:
54 // member variables
55 // NOLINTBEGIN
57 // NOLINTEND
58
59public:
60 // prevent constructor by default
61 Connector& operator=(Connector const&);
62 Connector(Connector const&);
63 Connector();
64
65public:
66 // virtual functions
67 // NOLINTBEGIN
68 // vIndex: 0
69 virtual ~Connector();
70
71 // vIndex: 1
72 virtual ::std::string getLocalIp();
73
74 // vIndex: 2
75 virtual ushort getPort() const;
76
77 // vIndex: 3
78 virtual ::Social::GameConnectionInfo const& getConnectedGameInfo() const;
79
80 // vIndex: 4
81 virtual bool isIPv4Supported() const;
82
83 // vIndex: 5
84 virtual bool isIPv6Supported() const;
85
86 // vIndex: 6
87 virtual ushort getIPv4Port() const;
88
89 // vIndex: 7
90 virtual ushort getIPv6Port() const;
91
92 // vIndex: 8
93 virtual ::TransportLayer getNetworkType() const;
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCNAPI void $dtor();
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCNAPI ::std::string $getLocalIp();
106
107 MCNAPI ushort $getPort() const;
108
109 MCNAPI ::Social::GameConnectionInfo const& $getConnectedGameInfo() const;
110
111 MCNAPI bool $isIPv4Supported() const;
112
113 MCNAPI bool $isIPv6Supported() const;
114
115 MCNAPI ushort $getIPv4Port() const;
116
117 MCNAPI ushort $getIPv6Port() const;
118
119 MCNAPI ::TransportLayer $getNetworkType() const;
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCNAPI static void** $vftable();
126 // NOLINTEND
127};
Definition Connector.h:16
MCAPI ushort $getPort() const
MCAPI::Social::GameConnectionInfo const & $getConnectedGameInfo() const
MCAPI::TransportLayer $getNetworkType() const
MCAPI bool $isIPv6Supported() const
MCAPI::std::string $getLocalIp()
MCAPI bool $isIPv4Supported() const
MCAPI ushort $getIPv6Port() const
static MCAPI void ** $vftable()
MCAPI ushort $getIPv4Port() const
MCAPI void $dtor()
Definition NetworkIdentifier.h:10
Definition NetworkPeer.h:8
Definition Connector.h:24
Definition Alias.h:14