| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 // Called when this connection should try checking writability again. | 517 // Called when this connection should try checking writability again. |
| 518 uint32_t last_ping_sent() const { return last_ping_sent_; } | 518 uint32_t last_ping_sent() const { return last_ping_sent_; } |
| 519 void Ping(uint32_t now); | 519 void Ping(uint32_t now); |
| 520 void ReceivedPingResponse(); | 520 void ReceivedPingResponse(); |
| 521 | 521 |
| 522 // Called whenever a valid ping is received on this connection. This is | 522 // Called whenever a valid ping is received on this connection. This is |
| 523 // public because the connection intercepts the first ping for us. | 523 // public because the connection intercepts the first ping for us. |
| 524 uint32_t last_ping_received() const { return last_ping_received_; } | 524 uint32_t last_ping_received() const { return last_ping_received_; } |
| 525 void ReceivedPing(); | 525 void ReceivedPing(); |
| 526 // Handles the binding request; sends a response if this is a valid request. |
| 527 void HandleBindingRequest(IceMessage* msg); |
| 526 | 528 |
| 527 // Debugging description of this connection | 529 // Debugging description of this connection |
| 528 std::string ToDebugId() const; | 530 std::string ToDebugId() const; |
| 529 std::string ToString() const; | 531 std::string ToString() const; |
| 530 std::string ToSensitiveString() const; | 532 std::string ToSensitiveString() const; |
| 531 // Prints pings_since_last_response_ into a string. | 533 // Prints pings_since_last_response_ into a string. |
| 532 void PrintPingsSinceLastResponse(std::string* pings, size_t max); | 534 void PrintPingsSinceLastResponse(std::string* pings, size_t max); |
| 533 | 535 |
| 534 bool reported() const { return reported_; } | 536 bool reported() const { return reported_; } |
| 535 void set_reported(bool reported) { reported_ = reported;} | 537 void set_reported(bool reported) { reported_ = reported;} |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 const rtc::PacketOptions& options); | 639 const rtc::PacketOptions& options); |
| 638 virtual int GetError() { return error_; } | 640 virtual int GetError() { return error_; } |
| 639 | 641 |
| 640 private: | 642 private: |
| 641 int error_; | 643 int error_; |
| 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 |