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