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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual int SetOption(rtc::Socket::Option opt, int value); | 80 virtual int SetOption(rtc::Socket::Option opt, int value); |
81 virtual bool GetOption(rtc::Socket::Option opt, int* value); | 81 virtual bool GetOption(rtc::Socket::Option opt, int* value); |
82 virtual int GetError() { return error_; } | 82 virtual int GetError() { return error_; } |
83 virtual bool GetStats(std::vector<ConnectionInfo>* stats); | 83 virtual bool GetStats(std::vector<ConnectionInfo>* stats); |
84 | 84 |
85 const Connection* best_connection() const { return best_connection_; } | 85 const Connection* best_connection() const { return best_connection_; } |
86 void set_incoming_only(bool value) { incoming_only_ = value; } | 86 void set_incoming_only(bool value) { incoming_only_ = value; } |
87 | 87 |
88 // Sets the receiving timeout in milliseconds. | 88 // Sets the receiving timeout in milliseconds. |
89 // This also sets the check_receiving_delay proportionally. | 89 // This also sets the check_receiving_delay proportionally. |
90 void set_receiving_timeout(int receiving_timeout_ms); | 90 void SetReceivingTimeout(int receiving_timeout_ms) override; |
91 | 91 |
92 // Note: This is only for testing purpose. | 92 // Note: This is only for testing purpose. |
93 // |ports_| should not be changed from outside. | 93 // |ports_| should not be changed from outside. |
94 const std::vector<PortInterface*>& ports() { return ports_; } | 94 const std::vector<PortInterface*>& ports() { return ports_; } |
95 | 95 |
96 IceMode remote_ice_mode() const { return remote_ice_mode_; } | 96 IceMode remote_ice_mode() const { return remote_ice_mode_; } |
97 | 97 |
98 // DTLS methods. | 98 // DTLS methods. |
99 virtual bool IsDtlsActive() const { return false; } | 99 virtual bool IsDtlsActive() const { return false; } |
100 | 100 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 int check_receiving_delay_; | 253 int check_receiving_delay_; |
254 int receiving_timeout_; | 254 int receiving_timeout_; |
255 | 255 |
256 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); | 256 DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
257 }; | 257 }; |
258 | 258 |
259 } // namespace cricket | 259 } // namespace cricket |
260 | 260 |
261 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ | 261 #endif // WEBRTC_P2P_BASE_P2PTRANSPORTCHANNEL_H_ |
OLD | NEW |