LeviLamina
Loading...
Searching...
No Matches
TCPInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace RakNet { struct Packet; }
8namespace RakNet { struct SystemAddress; }
9// clang-format on
10
11namespace RakNet {
12
13class TCPInterface {
14public:
15 // TCPInterface inner types declare
16 // clang-format off
17 struct ThisPtrPlusSysAddr;
18 // clang-format on
19
20 // TCPInterface inner types define
21 struct ThisPtrPlusSysAddr {
22 public:
23 // member variables
24 // NOLINTBEGIN
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 ThisPtrPlusSysAddr& operator=(ThisPtrPlusSysAddr const&);
35 ThisPtrPlusSysAddr(ThisPtrPlusSysAddr const&);
36 ThisPtrPlusSysAddr();
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
66 // NOLINTEND
67
68public:
69 // prevent constructor by default
70 TCPInterface& operator=(TCPInterface const&);
71 TCPInterface(TCPInterface const&);
72
73public:
74 // virtual functions
75 // NOLINTBEGIN
76 virtual ~TCPInterface();
77
78 virtual void Send(char const* data, uint length, ::RakNet::SystemAddress const& systemAddress, bool broadcast);
79
80 virtual bool SendList(
81 char const** data,
82 uint const* lengths,
83 int const numParameters,
84 ::RakNet::SystemAddress const& systemAddress,
85 bool broadcast
86 );
87
88 virtual bool ReceiveHasPackets();
89
90 virtual ::RakNet::Packet* Receive();
91
92 virtual void PushBackPacket(::RakNet::Packet* packet, bool pushAtHead);
93 // NOLINTEND
94
95public:
96 // member functions
97 // NOLINTBEGIN
98 MCAPI void CloseConnection(::RakNet::SystemAddress systemAddress);
99
100 MCAPI ::RakNet::SystemAddress
101 Connect(char const* host, ushort remotePort, bool block, ushort socketFamily, char const* bindAddress);
102
103 MCAPI bool CreateListenSocket(ushort port, ushort maxIncomingConnections, ushort socketFamily, char const*);
104
105 MCAPI void DeallocatePacket(::RakNet::Packet* packet);
106
107 MCAPI ushort GetConnectionCount() const;
108
109 MCAPI void GetConnectionList(::RakNet::SystemAddress* remoteSystems, ushort* numberOfSystems) const;
110
111 MCAPI uint GetOutgoingDataBufferSize(::RakNet::SystemAddress systemAddress) const;
112
113 MCAPI ::RakNet::SystemAddress HasCompletedConnectionAttempt();
114
115 MCAPI ::RakNet::SystemAddress HasFailedConnectionAttempt();
116
117 MCAPI ::RakNet::SystemAddress HasLostConnection();
118
119 MCAPI ::RakNet::Packet* ReceiveInt();
120
121 MCAPI uint64 SocketConnect(char const* host, ushort remotePort, ushort socketFamily, char const*);
122
123 MCAPI bool Start(
124 ushort port,
125 ushort maxIncomingConnections,
126 ushort maxConnections,
127 int _threadPriority,
128 ushort socketFamily,
129 char const* bindAddress
130 );
131
132 MCAPI void Stop();
133
134 MCAPI TCPInterface();
135
136 MCAPI bool WasStarted() const;
137
138 MCAPI bool _appendToBlockingSocketList(uint64 const& s);
139 // NOLINTEND
140
141public:
142 // constructor thunks
143 // NOLINTBEGIN
144 MCAPI void* $ctor();
145 // NOLINTEND
146
147public:
148 // destructor thunk
149 // NOLINTBEGIN
150 MCAPI void $dtor();
151 // NOLINTEND
152
153public:
154 // virtual function thunks
155 // NOLINTBEGIN
156 MCAPI void $Send(char const* data, uint length, ::RakNet::SystemAddress const& systemAddress, bool broadcast);
157
158 MCAPI bool $SendList(
159 char const** data,
160 uint const* lengths,
161 int const numParameters,
162 ::RakNet::SystemAddress const& systemAddress,
163 bool broadcast
164 );
165
166 MCAPI bool $ReceiveHasPackets();
167
168 MCAPI ::RakNet::Packet* $Receive();
169
170 MCAPI void $PushBackPacket(::RakNet::Packet* packet, bool pushAtHead);
171
172
173 // NOLINTEND
174
175public:
176 // vftables
177 // NOLINTBEGIN
178 MCNAPI static void** $vftable();
179 // NOLINTEND
180};
181
182} // namespace RakNet
static MCAPI void ** $vftable()
Definition Packet.h:7
Definition SystemAddress.h:7
Definition TCPInterface.h:21
Definition Alias.h:14