OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 size_t old_connection_count = connection_count_; | 174 size_t old_connection_count = connection_count_; |
175 connection_count_ = connection_count; | 175 connection_count_ = connection_count; |
176 if (connection_count_ < old_connection_count) | 176 if (connection_count_ < old_connection_count) |
177 SignalConnectionRemoved(this); | 177 SignalConnectionRemoved(this); |
178 } | 178 } |
179 | 179 |
180 void SetReceiving(bool receiving) { | 180 void SetReceiving(bool receiving) { |
181 set_receiving(receiving); | 181 set_receiving(receiving); |
182 } | 182 } |
183 | 183 |
| 184 void SetReceivingTimeout(int timeout) override {} |
| 185 |
184 virtual int SendPacket(const char* data, size_t len, | 186 virtual int SendPacket(const char* data, size_t len, |
185 const rtc::PacketOptions& options, int flags) { | 187 const rtc::PacketOptions& options, int flags) { |
186 if (state_ != STATE_CONNECTED) { | 188 if (state_ != STATE_CONNECTED) { |
187 return -1; | 189 return -1; |
188 } | 190 } |
189 | 191 |
190 if (flags != PF_SRTP_BYPASS && flags != 0) { | 192 if (flags != PF_SRTP_BYPASS && flags != 0) { |
191 return -1; | 193 return -1; |
192 } | 194 } |
193 | 195 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 } | 505 } |
504 } | 506 } |
505 | 507 |
506 private: | 508 private: |
507 bool fail_create_channel_; | 509 bool fail_create_channel_; |
508 }; | 510 }; |
509 | 511 |
510 } // namespace cricket | 512 } // namespace cricket |
511 | 513 |
512 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_ | 514 #endif // WEBRTC_P2P_BASE_FAKESESSION_H_ |
OLD | NEW |