LeviLamina
Loading...
Searching...
No Matches
UDPPort.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/IceCandidateType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class StunRequest; }
11namespace rtc { class AsyncPacketSocket; }
12namespace rtc { class Network; }
13namespace rtc { class PacketSocketFactory; }
14namespace rtc { class ReceivedPacket; }
15namespace rtc { class SocketAddress; }
16namespace rtc { class Thread; }
17namespace webrtc { class FieldTrialsView; }
18// clang-format on
19
20namespace cricket {
21
22class UDPPort {
23public:
24 // UDPPort inner types declare
25 // clang-format off
26 class AddressResolver;
27 // clang-format on
28
29 // UDPPort inner types define
31 public:
32 // prevent constructor by default
34
35 public:
36 // member functions
37 // NOLINTBEGIN
38 MCNAPI AddressResolver(::rtc::PacketSocketFactory*, ::std::function<void(::rtc::SocketAddress const&, int)>);
39
41
42 MCNAPI void Resolve(::rtc::SocketAddress const&, int, ::webrtc::FieldTrialsView const&);
43 // NOLINTEND
44
45 public:
46 // constructor thunks
47 // NOLINTBEGIN
48 MCNAPI void* $ctor(::rtc::PacketSocketFactory*, ::std::function<void(::rtc::SocketAddress const&, int)>);
49 // NOLINTEND
50 };
51
52public:
53 // prevent constructor by default
54 UDPPort();
55
56public:
57 // member functions
58 // NOLINTBEGIN
60
61 MCNAPI bool Init();
62
64
66
68
70
72
74
75 MCNAPI void OnResolveResult(::rtc::SocketAddress const&, int);
76
77 MCNAPI void OnSendPacket(void const*, uint64, ::cricket::StunRequest*);
78
79 MCNAPI void OnStunBindingOrResolveRequestFailed(::rtc::SocketAddress const&, int, ::std::string_view);
80
82
84
86
88
89 MCNAPI UDPPort(
91 ::webrtc::IceCandidateType,
93 ::rtc::Network const*,
95 ::std::string_view,
96 ::std::string_view,
97 bool,
99 );
100
101 MCNAPI UDPPort(
103 ::webrtc::IceCandidateType,
105 ::rtc::Network const*,
106 ushort,
107 ushort,
108 ::std::string_view,
109 ::std::string_view,
110 bool,
112 );
113
114 MCNAPI void set_stun_keepalive_delay(::std::optional<int> const&);
115 // NOLINTEND
116
117public:
118 // constructor thunks
119 // NOLINTBEGIN
120 MCNAPI void* $ctor(
122 ::webrtc::IceCandidateType,
124 ::rtc::Network const*,
126 ::std::string_view,
127 ::std::string_view,
128 bool,
130 );
131
132 MCNAPI void* $ctor(
134 ::webrtc::IceCandidateType,
136 ::rtc::Network const*,
137 ushort,
138 ushort,
139 ::std::string_view,
140 ::std::string_view,
141 bool,
143 );
144 // NOLINTEND
145
146public:
147 // vftables
148 // NOLINTBEGIN
149 MCNAPI static void** $vftableForPortInterface();
150
151 MCNAPI static void** $vftableForHasSlots();
152 // NOLINTEND
153};
154
155} // namespace cricket
Definition StunRequest.h:14
Definition UDPPort.h:30
MCAPI bool GetResolvedAddress(::rtc::SocketAddress const &, int, ::rtc::SocketAddress *) const
MCAPI void Resolve(::rtc::SocketAddress const &, int, ::webrtc::FieldTrialsView const &)
MCAPI void * $ctor(::rtc::PacketSocketFactory *, ::std::function< void(::rtc::SocketAddress const &, int)>)
MCAPI AddressResolver(::rtc::PacketSocketFactory *, ::std::function< void(::rtc::SocketAddress const &, int)>)
Definition UDPPort.h:22
MCAPI void ResolveStunAddress(::rtc::SocketAddress const &)
MCAPI void set_stun_keepalive_delay(::std::optional< int > const &)
MCAPI void OnSendPacket(void const *, uint64, ::cricket::StunRequest *)
static MCAPI void ** $vftableForPortInterface()
MCAPI void OnReadPacket(::rtc::AsyncPacketSocket *, ::rtc::ReceivedPacket const &)
MCAPI void OnStunBindingOrResolveRequestFailed(::rtc::SocketAddress const &, int, ::std::string_view)
MCAPI void OnLocalAddressReady(::rtc::AsyncPacketSocket *, ::rtc::SocketAddress const &)
MCAPI void OnReadyToSend(::rtc::AsyncPacketSocket *)
MCAPI void OnStunBindingRequestSucceeded(int, ::rtc::SocketAddress const &, ::rtc::SocketAddress const &)
MCAPI UDPPort(::rtc::Thread *, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ushort, ushort, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const *)
static MCAPI void ** $vftableForHasSlots()
MCAPI void SendStunBindingRequests()
MCAPI UDPPort(::rtc::Thread *, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ::rtc::AsyncPacketSocket *, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const *)
MCAPI bool HasStunCandidateWithAddress(::rtc::SocketAddress const &) const
MCAPI void MaybeSetPortCompleteOrError()
MCAPI void OnResolveResult(::rtc::SocketAddress const &, int)
MCAPI bool MaybeSetDefaultLocalAddress(::rtc::SocketAddress *) const
MCAPI bool Init()
MCAPI void SendStunBindingRequest(::rtc::SocketAddress const &)
MCAPI void * $ctor(::rtc::Thread *, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ::rtc::AsyncPacketSocket *, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const *)
MCAPI void MaybePrepareStunCandidate()
MCAPI void * $ctor(::rtc::Thread *, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory *, ::rtc::Network const *, ushort, ushort, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const *)
Definition AsyncPacketSocket.h:20
Definition Network.h:18
Definition PacketSocketFactory.h:17
Definition ReceivedPacket.h:16
Definition SocketAddress.h:12
Definition Thread.h:20
Definition FieldTrialsView.h:7