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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 return last_ping_response_received_; | 539 return last_ping_response_received_; |
540 } | 540 } |
541 | 541 |
542 // Called whenever a valid ping is received on this connection. This is | 542 // Called whenever a valid ping is received on this connection. This is |
543 // public because the connection intercepts the first ping for us. | 543 // public because the connection intercepts the first ping for us. |
544 int64_t last_ping_received() const { return last_ping_received_; } | 544 int64_t last_ping_received() const { return last_ping_received_; } |
545 void ReceivedPing(); | 545 void ReceivedPing(); |
546 // Handles the binding request; sends a response if this is a valid request. | 546 // Handles the binding request; sends a response if this is a valid request. |
547 void HandleBindingRequest(IceMessage* msg); | 547 void HandleBindingRequest(IceMessage* msg); |
548 | 548 |
| 549 int64_t last_data_received() const { return last_data_received_; } |
| 550 |
549 // Debugging description of this connection | 551 // Debugging description of this connection |
550 std::string ToDebugId() const; | 552 std::string ToDebugId() const; |
551 std::string ToString() const; | 553 std::string ToString() const; |
552 std::string ToSensitiveString() const; | 554 std::string ToSensitiveString() const; |
553 // Prints pings_since_last_response_ into a string. | 555 // Prints pings_since_last_response_ into a string. |
554 void PrintPingsSinceLastResponse(std::string* pings, size_t max); | 556 void PrintPingsSinceLastResponse(std::string* pings, size_t max); |
555 | 557 |
556 bool reported() const { return reported_; } | 558 bool reported() const { return reported_; } |
557 void set_reported(bool reported) { reported_ = reported;} | 559 void set_reported(bool reported) { reported_ = reported;} |
558 | 560 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 const rtc::PacketOptions& options) override; | 680 const rtc::PacketOptions& options) override; |
679 int GetError() override { return error_; } | 681 int GetError() override { return error_; } |
680 | 682 |
681 private: | 683 private: |
682 int error_ = 0; | 684 int error_ = 0; |
683 }; | 685 }; |
684 | 686 |
685 } // namespace cricket | 687 } // namespace cricket |
686 | 688 |
687 #endif // WEBRTC_P2P_BASE_PORT_H_ | 689 #endif // WEBRTC_P2P_BASE_PORT_H_ |
OLD | NEW |