OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
81 const std::string& ice_pwd) override; | 81 const std::string& ice_pwd) override; |
82 void SetRemoteIceCredentials(const std::string& ice_ufrag, | 82 void SetRemoteIceCredentials(const std::string& ice_ufrag, |
83 const std::string& ice_pwd) override; | 83 const std::string& ice_pwd) override; |
84 void SetRemoteIceMode(IceMode mode) override; | 84 void SetRemoteIceMode(IceMode mode) override; |
85 void Connect() override; | 85 void Connect() override; |
86 void MaybeStartGathering() override; | 86 void MaybeStartGathering() override; |
87 IceGatheringState gathering_state() const override { | 87 IceGatheringState gathering_state() const override { |
88 return gathering_state_; | 88 return gathering_state_; |
89 } | 89 } |
90 void AddRemoteCandidate(const Candidate& candidate) override; | 90 void AddRemoteCandidate(const Candidate& candidate) override; |
91 void RemoveRemoteCandidate(const Candidate& candidate) override; | |
91 // Sets the receiving timeout and gather_continually. | 92 // Sets the receiving timeout and gather_continually. |
92 // This also sets the check_receiving_delay proportionally. | 93 // This also sets the check_receiving_delay proportionally. |
93 void SetIceConfig(const IceConfig& config) override; | 94 void SetIceConfig(const IceConfig& config) override; |
94 | 95 |
95 // From TransportChannel: | 96 // From TransportChannel: |
96 int SendPacket(const char* data, | 97 int SendPacket(const char* data, |
97 size_t len, | 98 size_t len, |
98 const rtc::PacketOptions& options, | 99 const rtc::PacketOptions& options, |
99 int flags) override; | 100 int flags) override; |
100 int SetOption(rtc::Socket::Option opt, int value) override; | 101 int SetOption(rtc::Socket::Option opt, int value) override; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 void OnCandidatesReady(PortAllocatorSession *session, | 221 void OnCandidatesReady(PortAllocatorSession *session, |
221 const std::vector<Candidate>& candidates); | 222 const std::vector<Candidate>& candidates); |
222 void OnCandidatesAllocationDone(PortAllocatorSession* session); | 223 void OnCandidatesAllocationDone(PortAllocatorSession* session); |
223 void OnUnknownAddress(PortInterface* port, | 224 void OnUnknownAddress(PortInterface* port, |
224 const rtc::SocketAddress& addr, | 225 const rtc::SocketAddress& addr, |
225 ProtocolType proto, | 226 ProtocolType proto, |
226 IceMessage* stun_msg, | 227 IceMessage* stun_msg, |
227 const std::string& remote_username, | 228 const std::string& remote_username, |
228 bool port_muxed); | 229 bool port_muxed); |
229 void OnPortDestroyed(PortInterface* port); | 230 void OnPortDestroyed(PortInterface* port); |
231 void OnPortStopped(PortInterface* port); | |
pthatcher1
2016/02/10 00:01:41
How is OnPortStopped different than OnPortDestroye
honghaiz3
2016/02/10 19:22:44
PortStopped is triggered by network becoming inact
| |
230 void OnRoleConflict(PortInterface* port); | 232 void OnRoleConflict(PortInterface* port); |
231 | 233 |
232 void OnConnectionStateChange(Connection* connection); | 234 void OnConnectionStateChange(Connection* connection); |
233 void OnReadPacket(Connection *connection, const char *data, size_t len, | 235 void OnReadPacket(Connection *connection, const char *data, size_t len, |
234 const rtc::PacketTime& packet_time); | 236 const rtc::PacketTime& packet_time); |
235 void OnSentPacket(const rtc::SentPacket& sent_packet); | 237 void OnSentPacket(const rtc::SentPacket& sent_packet); |
236 void OnReadyToSend(Connection* connection); | 238 void OnReadyToSend(Connection* connection); |
237 void OnConnectionDestroyed(Connection *connection); | 239 void OnConnectionDestroyed(Connection *connection); |
238 | 240 |
239 void OnNominated(Connection* conn); | 241 void OnNominated(Connection* conn); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 bool gather_continually_ = false; | 298 bool gather_continually_ = false; |
297 int weak_ping_delay_ = WEAK_PING_DELAY; | 299 int weak_ping_delay_ = WEAK_PING_DELAY; |
298 TransportChannelState state_ = TransportChannelState::STATE_INIT; | 300 TransportChannelState state_ = TransportChannelState::STATE_INIT; |
299 | 301 |
300 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 302 RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
301 }; | 303 }; |
302 | 304 |
303 } // namespace cricket | 305 } // namespace cricket |
304 | 306 |
305 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 307 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |