LeviLamina
Loading...
Searching...
No Matches
TurnPort.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/ProtocolType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class Connection; }
11namespace cricket { class StunMessage; }
12namespace cricket { class StunRequest; }
13namespace cricket { class TurnEntry; }
14namespace cricket { struct CreateRelayPortArgs; }
15namespace cricket { struct ProtocolAddress; }
16namespace cricket { struct RelayCredentials; }
17namespace rtc { class AsyncPacketSocket; }
18namespace rtc { class IPAddress; }
19namespace rtc { class Network; }
20namespace rtc { class PacketSocketFactory; }
21namespace rtc { class SSLCertificateVerifier; }
22namespace rtc { class SocketAddress; }
23namespace rtc { struct PacketOptions; }
24namespace webrtc { class FieldTrialsView; }
25namespace webrtc { class TaskQueueBase; }
26namespace webrtc { class TurnCustomizer; }
27// clang-format on
28
29namespace cricket {
30
31class TurnPort {
32public:
33 // prevent constructor by default
34 TurnPort();
35
36public:
37 // member functions
38 // NOLINTBEGIN
40
41 MCNAPI void Close();
42
44
46
47 MCNAPI void DispatchPacket(char const*, uint64, ::rtc::SocketAddress const&, ::cricket::ProtocolType, int64);
48
50
51 MCNAPI ::cricket::TurnEntry* FindEntry(int) const;
52
53 MCNAPI ::cricket::TurnEntry* FindEntry(::rtc::SocketAddress const&) const;
54
55 MCNAPI ::rtc::SocketAddress GetLocalAddress() const;
56
57 MCNAPI void HandleChannelData(int, char const*, uint64, int64);
58
59 MCNAPI void HandleDataIndication(char const*, uint64, int64);
60
61 MCNAPI void HandleRefreshError();
62
63 MCNAPI bool HasPermission(::rtc::IPAddress const&) const;
64
66
67 MCNAPI void OnAllocateError(int, ::std::string_view);
68
69 MCNAPI void OnAllocateMismatch();
70
72
74
75 MCNAPI void OnRefreshError();
76
77 MCNAPI void OnSendStunPacket(void const*, uint64, ::cricket::StunRequest*);
78
80
82
83 MCNAPI ::std::string ReconstructServerUrl();
84
85 MCNAPI void Release();
86
87 MCNAPI void ResetNonce();
88
90
91 MCNAPI bool ScheduleRefresh(uint);
92
93 MCNAPI int Send(void const*, uint64, ::rtc::PacketOptions const&);
94
96
98
99 MCNAPI void SetTurnLoggingId(::std::string_view);
100
101 MCNAPI void TryAlternateServer();
102
103 MCNAPI bool TurnCustomizerAllowChannelData(void const*, uint64, bool);
104
106
107 MCNAPI TurnPort(
110 ::rtc::Network const*,
112 ::std::string_view,
113 ::std::string_view,
116 int,
117 ::std::vector<::std::string> const&,
118 ::std::vector<::std::string> const&,
122 );
123
124 MCNAPI TurnPort(
127 ::rtc::Network const*,
128 ushort,
129 ushort,
130 ::std::string_view,
131 ::std::string_view,
134 int,
135 ::std::vector<::std::string> const&,
136 ::std::vector<::std::string> const&,
140 );
141
142 MCNAPI void UpdateHash();
143
145
146 MCNAPI void set_nonce(::std::string_view);
147
148 MCNAPI void set_realm(::std::string_view);
149 // NOLINTEND
150
151public:
152 // static functions
153 // NOLINTBEGIN
154 MCNAPI static bool AllowedTurnPort(int, ::webrtc::FieldTrialsView const*);
155
156 MCNAPI static bool Validate(::cricket::CreateRelayPortArgs const&);
157 // NOLINTEND
158
159public:
160 // constructor thunks
161 // NOLINTBEGIN
162 MCNAPI void* $ctor(
165 ::rtc::Network const*,
167 ::std::string_view,
168 ::std::string_view,
171 int,
172 ::std::vector<::std::string> const&,
173 ::std::vector<::std::string> const&,
177 );
178
179 MCNAPI void* $ctor(
182 ::rtc::Network const*,
183 ushort,
184 ushort,
185 ::std::string_view,
186 ::std::string_view,
189 int,
190 ::std::vector<::std::string> const&,
191 ::std::vector<::std::string> const&,
195 );
196 // NOLINTEND
197
198public:
199 // vftables
200 // NOLINTBEGIN
201 MCNAPI static void** $vftableForHasSlots();
202
203 MCNAPI static void** $vftableForPortInterface();
204 // NOLINTEND
205};
206
207} // namespace cricket
Definition Connection.h:38
Definition StunMessage.h:23
Definition StunRequest.h:14
Definition TurnPort.h:31
MCAPI void SetTurnLoggingId(::std::string_view)
MCAPI void * $ctor(::webrtc::TaskQueueBase *, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ::rtc::AsyncPacketSocket *, ::std::string_view, ::std::string_view, ::cricket::ProtocolAddress const &, ::cricket::RelayCredentials const &, int, ::std::vector<::std::string > const &, ::std::vector<::std::string > const &, ::webrtc::TurnCustomizer *, ::rtc::SSLCertificateVerifier *, ::webrtc::FieldTrialsView const *)
MCAPI void OnAllocateRequestTimeout()
MCAPI::std::string ReconstructServerUrl()
static MCAPI bool AllowedTurnPort(int, ::webrtc::FieldTrialsView const *)
MCAPI void OnRefreshError()
MCAPI void OnAllocateMismatch()
MCAPI void OnSendStunPacket(void const *, uint64, ::cricket::StunRequest *)
MCAPI void * $ctor(::webrtc::TaskQueueBase *, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ushort, ushort, ::std::string_view, ::std::string_view, ::cricket::ProtocolAddress const &, ::cricket::RelayCredentials const &, int, ::std::vector<::std::string > const &, ::std::vector<::std::string > const &, ::webrtc::TurnCustomizer *, ::rtc::SSLCertificateVerifier *, ::webrtc::FieldTrialsView const *)
MCAPI bool SetAlternateServer(::rtc::SocketAddress const &)
MCAPI bool TurnCustomizerAllowChannelData(void const *, uint64, bool)
MCAPI void MaybeAddTurnLoggingId(::cricket::StunMessage *)
MCAPI void TryAlternateServer()
static MCAPI bool Validate(::cricket::CreateRelayPortArgs const &)
MCAPI void ResetNonce()
static MCAPI void ** $vftableForPortInterface()
MCAPI TurnPort(::webrtc::TaskQueueBase *, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ::rtc::AsyncPacketSocket *, ::std::string_view, ::std::string_view, ::cricket::ProtocolAddress const &, ::cricket::RelayCredentials const &, int, ::std::vector<::std::string > const &, ::std::vector<::std::string > const &, ::webrtc::TurnCustomizer *, ::rtc::SSLCertificateVerifier *, ::webrtc::FieldTrialsView const *)
MCAPI void OnSocketClose(::rtc::AsyncPacketSocket *, int)
MCAPI void SendRequest(::cricket::StunRequest *, int)
MCAPI TurnPort(::webrtc::TaskQueueBase *, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ushort, ushort, ::std::string_view, ::std::string_view, ::cricket::ProtocolAddress const &, ::cricket::RelayCredentials const &, int, ::std::vector<::std::string > const &, ::std::vector<::std::string > const &, ::webrtc::TurnCustomizer *, ::rtc::SSLCertificateVerifier *, ::webrtc::FieldTrialsView const *)
MCAPI void set_nonce(::std::string_view)
static MCAPI void ** $vftableForHasSlots()
MCAPI bool HasPermission(::rtc::IPAddress const &) const
MCAPI void HandleDataIndication(char const *, uint64, int64)
MCAPI void OnAllocateError(int, ::std::string_view)
MCAPI void Close()
MCAPI void ResolveTurnAddress(::rtc::SocketAddress const &)
MCAPI::cricket::TurnEntry * FindEntry(int) const
MCAPI::cricket::TurnEntry * FindEntry(::rtc::SocketAddress const &) const
MCAPI void HandleRefreshError()
MCAPI void TurnCustomizerMaybeModifyOutgoingStunMessage(::cricket::StunMessage *)
MCAPI bool CreateTurnClientSocket()
MCAPI void set_realm(::std::string_view)
MCAPI void OnSocketConnect(::rtc::AsyncPacketSocket *)
MCAPI bool UpdateNonce(::cricket::StunMessage *)
MCAPI bool FailAndPruneConnection(::rtc::SocketAddress const &)
MCAPI bool ScheduleRefresh(uint)
MCAPI void HandleChannelData(int, char const *, uint64, int64)
MCAPI void OnAllocateSuccess(::rtc::SocketAddress const &, ::rtc::SocketAddress const &)
MCAPI void DispatchPacket(char const *, uint64, ::rtc::SocketAddress const &, ::cricket::ProtocolType, int64)
MCAPI int Send(void const *, uint64, ::rtc::PacketOptions const &)
MCAPI bool CreateOrRefreshEntry(::cricket::Connection *, int)
MCAPI void AddRequestAuthInfo(::cricket::StunMessage *)
MCAPI::rtc::SocketAddress GetLocalAddress() const
MCAPI void UpdateHash()
MCAPI void Release()
Definition AsyncPacketSocket.h:20
Definition IPAddress.h:7
Definition Network.h:18
Definition PacketSocketFactory.h:17
Definition SSLCertificateVerifier.h:12
Definition SocketAddress.h:12
Definition FieldTrialsView.h:7
Definition TaskQueueBase.h:16
Definition TurnCustomizer.h:13
Definition CreateRelayPortArgs.h:7
Definition ProtocolAddress.h:7
Definition RelayCredentials.h:7
Definition PacketOptions.h:10