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