| 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 // Writes as many pending retransmissions as possible. | 787 // Writes as many pending retransmissions as possible. |
| 788 void WritePendingRetransmissions(); | 788 void WritePendingRetransmissions(); |
| 789 | 789 |
| 790 // Queues |packet| in the hopes that it can be decrypted in the | 790 // Queues |packet| in the hopes that it can be decrypted in the |
| 791 // future, when a new key is installed. | 791 // future, when a new key is installed. |
| 792 void QueueUndecryptablePacket(const QuicEncryptedPacket& packet); | 792 void QueueUndecryptablePacket(const QuicEncryptedPacket& packet); |
| 793 | 793 |
| 794 // Attempts to process any queued undecryptable packets. | 794 // Attempts to process any queued undecryptable packets. |
| 795 void MaybeProcessUndecryptablePackets(); | 795 void MaybeProcessUndecryptablePackets(); |
| 796 | 796 |
| 797 void ProcessAckFrame(const QuicAckFrame& incoming_ack); | |
| 798 | |
| 799 void ProcessStopWaitingFrame(const QuicStopWaitingFrame& stop_waiting); | |
| 800 | |
| 801 // Sends any packets which are a response to the last packet, including both | 797 // Sends any packets which are a response to the last packet, including both |
| 802 // acks and pending writes if an ack opened the congestion window. | 798 // acks and pending writes if an ack opened the congestion window. |
| 803 void MaybeSendInResponseToPacket(); | 799 void MaybeSendInResponseToPacket(); |
| 804 | 800 |
| 805 // Queue an ack or set the ack alarm if needed. |was_missing| is true if | 801 // Queue an ack or set the ack alarm if needed. |was_missing| is true if |
| 806 // the most recently received packet was formerly missing. | 802 // the most recently received packet was formerly missing. |
| 807 void MaybeQueueAck(bool was_missing); | 803 void MaybeQueueAck(bool was_missing); |
| 808 | 804 |
| 809 // Gets the least unacked packet number, which is the next packet number to be | 805 // Gets the least unacked packet number, which is the next packet number to be |
| 810 // sent if there are no outstanding packets. | 806 // sent if there are no outstanding packets. |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 // Indicates whether a write error is encountered currently. This is used to | 1082 // Indicates whether a write error is encountered currently. This is used to |
| 1087 // avoid infinite write errors. | 1083 // avoid infinite write errors. |
| 1088 bool write_error_occured_; | 1084 bool write_error_occured_; |
| 1089 | 1085 |
| 1090 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1086 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1091 }; | 1087 }; |
| 1092 | 1088 |
| 1093 } // namespace net | 1089 } // namespace net |
| 1094 | 1090 |
| 1095 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1091 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| OLD | NEW |