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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 void MaybeAddPrflxCandidate(ConnectionRequest* request, | 618 void MaybeAddPrflxCandidate(ConnectionRequest* request, |
619 StunMessage* response); | 619 StunMessage* response); |
620 | 620 |
621 bool reported_; | 621 bool reported_; |
622 State state_; | 622 State state_; |
623 // Time duration to switch from receiving to not receiving. | 623 // Time duration to switch from receiving to not receiving. |
624 uint32_t receiving_timeout_; | 624 uint32_t receiving_timeout_; |
625 uint32_t time_created_ms_; | 625 uint32_t time_created_ms_; |
626 | 626 |
627 friend class Port; | 627 friend class Port; |
| 628 friend class TurnPort; |
628 friend class ConnectionRequest; | 629 friend class ConnectionRequest; |
629 }; | 630 }; |
630 | 631 |
631 // ProxyConnection defers all the interesting work to the port | 632 // ProxyConnection defers all the interesting work to the port. |
632 class ProxyConnection : public Connection { | 633 class ProxyConnection : public Connection { |
633 public: | 634 public: |
634 ProxyConnection(Port* port, size_t index, const Candidate& candidate); | 635 ProxyConnection(Port* port, size_t index, const Candidate& remote_candidate); |
635 | 636 |
636 virtual int Send(const void* data, size_t size, | 637 int Send(const void* data, |
637 const rtc::PacketOptions& options); | 638 size_t size, |
638 virtual int GetError() { return error_; } | 639 const rtc::PacketOptions& options) override; |
| 640 int GetError() override { return error_; } |
639 | 641 |
640 private: | 642 private: |
641 int error_; | 643 int error_ = 0; |
642 }; | 644 }; |
643 | 645 |
644 } // namespace cricket | 646 } // namespace cricket |
645 | 647 |
646 #endif // WEBRTC_P2P_BASE_PORT_H_ | 648 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |