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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 // to be sent if there are no outstanding packets. | 644 // to be sent if there are no outstanding packets. |
645 QuicPacketSequenceNumber GetLeastUnacked() const; | 645 QuicPacketSequenceNumber GetLeastUnacked() const; |
646 | 646 |
647 // Get the FEC group associate with the last processed packet or NULL, if the | 647 // Get the FEC group associate with the last processed packet or NULL, if the |
648 // group has already been deleted. | 648 // group has already been deleted. |
649 QuicFecGroup* GetFecGroup(); | 649 QuicFecGroup* GetFecGroup(); |
650 | 650 |
651 // Closes any FEC groups protecting packets before |sequence_number|. | 651 // Closes any FEC groups protecting packets before |sequence_number|. |
652 void CloseFecGroupsBefore(QuicPacketSequenceNumber sequence_number); | 652 void CloseFecGroupsBefore(QuicPacketSequenceNumber sequence_number); |
653 | 653 |
| 654 // Sets the timeout alarm to the appropriate value, if any. |
| 655 void SetTimeoutAlarm(); |
| 656 |
654 // Sets the ping alarm to the appropriate value, if any. | 657 // Sets the ping alarm to the appropriate value, if any. |
655 void SetPingAlarm(); | 658 void SetPingAlarm(); |
656 | 659 |
657 // On arrival of a new packet, checks to see if the socket addresses have | 660 // On arrival of a new packet, checks to see if the socket addresses have |
658 // changed since the last packet we saw on this connection. | 661 // changed since the last packet we saw on this connection. |
659 void CheckForAddressMigration(const IPEndPoint& self_address, | 662 void CheckForAddressMigration(const IPEndPoint& self_address, |
660 const IPEndPoint& peer_address); | 663 const IPEndPoint& peer_address); |
661 | 664 |
662 HasRetransmittableData IsRetransmittable(const QueuedPacket& packet); | 665 HasRetransmittableData IsRetransmittable(const QueuedPacket& packet); |
663 bool IsConnectionClose(QueuedPacket packet); | 666 bool IsConnectionClose(QueuedPacket packet); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 // If non-empty this contains the set of versions received in a | 809 // If non-empty this contains the set of versions received in a |
807 // version negotiation packet. | 810 // version negotiation packet. |
808 QuicVersionVector server_supported_versions_; | 811 QuicVersionVector server_supported_versions_; |
809 | 812 |
810 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 813 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
811 }; | 814 }; |
812 | 815 |
813 } // namespace net | 816 } // namespace net |
814 | 817 |
815 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 818 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |