| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // The entity that handles framing writes for a Quic client or server. | 5 // The entity that handles framing writes for a Quic client or server. |
| 6 // Each QuicSession will have a connection associated with it. | 6 // Each QuicSession will have a connection associated with it. |
| 7 // | 7 // |
| 8 // On the server side, the Dispatcher handles the raw reads, and hands off | 8 // On the server side, the Dispatcher handles the raw reads, and hands off |
| 9 // packets via ProcessUdpPacket for framing and processing. | 9 // packets via ProcessUdpPacket for framing and processing. |
| 10 // | 10 // |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 void SendPing(); | 445 void SendPing(); |
| 446 | 446 |
| 447 // Sets up a packet with an QuicAckFrame and sends it out. | 447 // Sets up a packet with an QuicAckFrame and sends it out. |
| 448 void SendAck(); | 448 void SendAck(); |
| 449 | 449 |
| 450 // Called when an RTO fires. Resets the retransmission alarm if there are | 450 // Called when an RTO fires. Resets the retransmission alarm if there are |
| 451 // remaining unacked packets. | 451 // remaining unacked packets. |
| 452 void OnRetransmissionTimeout(); | 452 void OnRetransmissionTimeout(); |
| 453 | 453 |
| 454 // Retransmits all unacked packets with retransmittable frames if | 454 // Retransmits all unacked packets with retransmittable frames if |
| 455 // |retransmission_type| is ALL_PACKETS, otherwise retransmits only initially | 455 // |retransmission_type| is ALL_UNACKED_PACKETS, otherwise retransmits only |
| 456 // encrypted packets. Used when the negotiated protocol version is different | 456 // initially encrypted packets. Used when the negotiated protocol version is |
| 457 // from what was initially assumed and when the visitor wants to re-transmit | 457 // different from what was initially assumed and when the initial encryption |
| 458 // initially encrypted packets when the initial encrypter changes. | 458 // changes. |
| 459 void RetransmitUnackedPackets(RetransmissionType retransmission_type); | 459 void RetransmitUnackedPackets(TransmissionType retransmission_type); |
| 460 | 460 |
| 461 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the | 461 // Calls |sent_packet_manager_|'s NeuterUnencryptedPackets. Used when the |
| 462 // connection becomes forward secure and hasn't received acks for all packets. | 462 // connection becomes forward secure and hasn't received acks for all packets. |
| 463 void NeuterUnencryptedPackets(); | 463 void NeuterUnencryptedPackets(); |
| 464 | 464 |
| 465 // Changes the encrypter used for level |level| to |encrypter|. The function | 465 // Changes the encrypter used for level |level| to |encrypter|. The function |
| 466 // takes ownership of |encrypter|. | 466 // takes ownership of |encrypter|. |
| 467 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); | 467 void SetEncrypter(EncryptionLevel level, QuicEncrypter* encrypter); |
| 468 const QuicEncrypter* encrypter(EncryptionLevel level) const; | 468 const QuicEncrypter* encrypter(EncryptionLevel level) const; |
| 469 | 469 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 // If non-empty this contains the set of versions received in a | 795 // If non-empty this contains the set of versions received in a |
| 796 // version negotiation packet. | 796 // version negotiation packet. |
| 797 QuicVersionVector server_supported_versions_; | 797 QuicVersionVector server_supported_versions_; |
| 798 | 798 |
| 799 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 799 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 800 }; | 800 }; |
| 801 | 801 |
| 802 } // namespace net | 802 } // namespace net |
| 803 | 803 |
| 804 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 804 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |