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
104 CreateListenSocket(ushort port, ushort maxIncomingConnections, ushort socketFamily, char const* bindAddress);
105
106 MCAPI void GetConnectionList(::RakNet::SystemAddress* remoteSystems, ushort* numberOfSystems) const;
107
108 MCAPI uint GetOutgoingDataBufferSize(::RakNet::SystemAddress systemAddress) const;
109
110 MCAPI ::RakNet::SystemAddress HasCompletedConnectionAttempt();
111
112 MCAPI ::RakNet::SystemAddress HasFailedConnectionAttempt();
113
114 MCAPI ::RakNet::SystemAddress HasLostConnection();
115
116 MCAPI ::RakNet::Packet* ReceiveInt();
117
118 MCAPI uint64 SocketConnect(char const* host, ushort remotePort, ushort socketFamily, char const* bindAddress);
119
120 MCAPI bool Start(
121 ushort port,
122 ushort maxIncomingConnections,
123 ushort maxConnections,
124 int _threadPriority,
125 ushort socketFamily,
126 char const* bindAddress
127 );
128
129 MCAPI void Stop();
130
131 MCAPI TCPInterface();
132 // NOLINTEND
133
134public:
135 // constructor thunks
136 // NOLINTBEGIN
137 MCAPI void* $ctor();
138 // NOLINTEND
139
140public:
141 // destructor thunk
142 // NOLINTBEGIN
143 MCAPI void $dtor();
144 // NOLINTEND
145
146public:
147 // virtual function thunks
148 // NOLINTBEGIN
149 MCAPI void $Send(char const* data, uint length, ::RakNet::SystemAddress const& systemAddress, bool broadcast);
150
151 MCAPI bool $SendList(
152 char const** data,
153 uint const* lengths,
154 int const numParameters,
155 ::RakNet::SystemAddress const& systemAddress,
156 bool broadcast
157 );
158
159 MCAPI bool $ReceiveHasPackets();
160
161 MCAPI ::RakNet::Packet* $Receive();
162
163 MCAPI void $PushBackPacket(::RakNet::Packet* packet, bool pushAtHead);
164
165
166 // NOLINTEND
167
168public:
169 // vftables
170 // NOLINTBEGIN
171 MCNAPI static void** $vftable();
172 // NOLINTEND
173};
174
175} // namespace RakNet
static MCAPI void ** $vftable()
Definition Packet.h:7
Definition SystemAddress.h:7
Definition TCPInterface.h:21
Definition Alias.h:14