115 virtual void PrepareAddress() ;
118 virtual ::cricket::Connection* CreateConnection(
120 ::cricket::PortInterface::CandidateOrigin origin
124 virtual int SetOption(::rtc::Socket::Option opt,
int value) ;
127 virtual int GetOption(::rtc::Socket::Option opt,
int* value) ;
130 virtual int GetError() ;
137 virtual bool SupportsProtocol(::std::string_view protocol)
const ;
140 virtual ::cricket::ProtocolType GetProtocol() const ;
143 virtual
void GetStunStats(::
std::optional<::cricket::
StunStats>* stats) ;
149 ::rtc::SocketAddress const& addr,
150 ::rtc::PacketOptions const& options,
155 virtual
void UpdateNetworkCost() ;
158 virtual ::rtc::DiffServCodePoint StunDscpValue() const ;
161 virtual
void PostAddAddress(
bool is_final) ;
164 virtual
void OnSentPacket(::rtc::AsyncPacketSocket* socket, ::rtc::SentPacket const& sent_packet) ;
182 MCNAPI
void OnReadPacket(::rtc::AsyncPacketSocket* socket, ::rtc::ReceivedPacket const& packet);
191 ::rtc::SocketAddress const& stun_server_addr,
193 ::
std::string_view reason
198 ::rtc::SocketAddress const& stun_server_addr,
199 ::rtc::SocketAddress const& stun_reflected_addr
209 ::rtc::Thread* thread,
210 ::webrtc::IceCandidateType type,
211 ::rtc::PacketSocketFactory* factory,
212 ::rtc::Network const* network,
213 ::
std::shared_ptr<::rtc::AsyncPacketSocket> socket,
214 ::
std::string_view username,
215 ::
std::string_view password,
216 bool emit_local_for_anyaddress,
217 ::webrtc::FieldTrialsView const* field_trials
221 ::rtc::Thread* thread,
222 ::webrtc::IceCandidateType type,
223 ::rtc::PacketSocketFactory* factory,
224 ::rtc::Network const* network,
227 ::
std::string_view username,
228 ::
std::string_view password,
229 bool emit_local_for_anyaddress,
230 ::webrtc::FieldTrialsView const* field_trials
240 ::rtc::Thread* thread,
241 ::webrtc::IceCandidateType type,
242 ::rtc::PacketSocketFactory* factory,
243 ::rtc::Network const* network,
244 ::
std::shared_ptr<::rtc::AsyncPacketSocket> socket,
245 ::
std::string_view username,
246 ::
std::string_view password,
247 bool emit_local_for_anyaddress,
248 ::webrtc::FieldTrialsView const* field_trials
252 ::rtc::Thread* thread,
253 ::webrtc::IceCandidateType type,
254 ::rtc::PacketSocketFactory* factory,
255 ::rtc::Network const* network,
258 ::
std::string_view username,
259 ::
std::string_view password,
260 bool emit_local_for_anyaddress,
261 ::webrtc::FieldTrialsView const* field_trials
296 ::rtc::SocketAddress const& addr,
297 ::rtc::PacketOptions const& options,
307 MCNAPI
void $OnSentPacket(::rtc::AsyncPacketSocket* socket, ::rtc::SentPacket const& sent_packet);