41 class AddressResolver {
52 AddressResolver& operator=(AddressResolver
const&);
53 AddressResolver(AddressResolver
const&);
87 UDPPort& operator=(UDPPort
const&);
88 UDPPort(UDPPort
const&);
96 virtual void PrepareAddress() ;
98 virtual ::cricket::Connection* CreateConnection(
100 ::cricket::PortInterface::CandidateOrigin origin
103 virtual int SetOption(::rtc::Socket::Option opt,
int value) ;
105 virtual int GetOption(::rtc::Socket::Option opt,
int* value) ;
107 virtual int GetError() ;
112 virtual bool SupportsProtocol(::std::string_view protocol)
const ;
114 virtual ::cricket::ProtocolType GetProtocol() const ;
116 virtual
void GetStunStats(::
std::optional<::cricket::
StunStats>* stats) ;
121 ::rtc::SocketAddress const& addr,
122 ::rtc::PacketOptions const& options,
126 virtual
void UpdateNetworkCost() ;
128 virtual ::rtc::DiffServCodePoint StunDscpValue() const ;
130 virtual
void PostAddAddress(
bool is_final) ;
132 virtual
void OnSentPacket(::rtc::AsyncPacketSocket* socket, ::rtc::SentPacket const& sent_packet) ;
146 MCNAPI
void OnReadPacket(::rtc::AsyncPacketSocket* socket, ::rtc::ReceivedPacket const& packet);
155 ::rtc::SocketAddress const& stun_server_addr,
157 ::
std::string_view reason
162 ::rtc::SocketAddress const& stun_server_addr,
163 ::rtc::SocketAddress const& stun_reflected_addr
173 ::rtc::Thread* thread,
174 ::webrtc::IceCandidateType type,
175 ::rtc::PacketSocketFactory* factory,
176 ::rtc::Network const* network,
177 ::
std::shared_ptr<::rtc::AsyncPacketSocket> socket,
178 ::
std::string_view username,
179 ::
std::string_view password,
180 bool emit_local_for_anyaddress,
181 ::webrtc::FieldTrialsView const* field_trials
185 ::rtc::Thread* thread,
186 ::webrtc::IceCandidateType type,
187 ::rtc::PacketSocketFactory* factory,
188 ::rtc::Network const* network,
191 ::
std::string_view username,
192 ::
std::string_view password,
193 bool emit_local_for_anyaddress,
194 ::webrtc::FieldTrialsView const* field_trials
203 MCNAPI static ::
std::unique_ptr<::cricket::UDPPort>
Create(
204 ::rtc::Thread* thread,
205 ::rtc::PacketSocketFactory* factory,
206 ::rtc::Network const* network,
207 ::
std::shared_ptr<::rtc::AsyncPacketSocket> socket,
208 ::
std::string_view username,
209 ::
std::string_view password,
210 bool emit_local_for_anyaddress,
211 ::
std::optional<
int> stun_keepalive_interval,
212 ::webrtc::FieldTrialsView const* field_trials
220 ::rtc::Thread* thread,
221 ::webrtc::IceCandidateType type,
222 ::rtc::PacketSocketFactory* factory,
223 ::rtc::Network const* network,
224 ::
std::shared_ptr<::rtc::AsyncPacketSocket> socket,
225 ::
std::string_view username,
226 ::
std::string_view password,
227 bool emit_local_for_anyaddress,
228 ::webrtc::FieldTrialsView const* field_trials
232 ::rtc::Thread* thread,
233 ::webrtc::IceCandidateType type,
234 ::rtc::PacketSocketFactory* factory,
235 ::rtc::Network const* network,
238 ::
std::string_view username,
239 ::
std::string_view password,
240 bool emit_local_for_anyaddress,
241 ::webrtc::FieldTrialsView const* field_trials
276 ::rtc::SocketAddress const& addr,
277 ::rtc::PacketOptions const& options,
287 MCNAPI
void $OnSentPacket(::rtc::AsyncPacketSocket* socket, ::rtc::SentPacket const& sent_packet);
MCAPI void * $ctor(::rtc::Thread *thread, ::webrtc::IceCandidateType type, ::rtc::PacketSocketFactory *factory, ::rtc::Network const *network, ::std::shared_ptr<::rtc::AsyncPacketSocket > socket, ::std::string_view username, ::std::string_view password, bool emit_local_for_anyaddress, ::webrtc::FieldTrialsView const *field_trials)
static MCAPI ::std::unique_ptr<::cricket::UDPPort > Create(::rtc::Thread *thread, ::rtc::PacketSocketFactory *factory, ::rtc::Network const *network, ::std::shared_ptr<::rtc::AsyncPacketSocket > socket, ::std::string_view username, ::std::string_view password, bool emit_local_for_anyaddress, ::std::optional< int > stun_keepalive_interval, ::webrtc::FieldTrialsView const *field_trials)