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 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 // Overall connection timeout. | 776 // Overall connection timeout. |
777 QuicTime::Delta overall_connection_timeout_; | 777 QuicTime::Delta overall_connection_timeout_; |
778 | 778 |
779 // Statistics for this session. | 779 // Statistics for this session. |
780 QuicConnectionStats stats_; | 780 QuicConnectionStats stats_; |
781 | 781 |
782 // The time that we got a packet for this connection. | 782 // The time that we got a packet for this connection. |
783 // This is used for timeouts, and does not indicate the packet was processed. | 783 // This is used for timeouts, and does not indicate the packet was processed. |
784 QuicTime time_of_last_received_packet_; | 784 QuicTime time_of_last_received_packet_; |
785 | 785 |
786 // The last time a new (non-retransmitted) packet was sent for this | 786 // The last time this connection began sending a new (non-retransmitted) |
787 // connection. | 787 // packet. |
788 QuicTime time_of_last_sent_new_packet_; | 788 QuicTime time_of_last_sent_new_packet_; |
789 | 789 |
790 // Sequence number of the last sent packet. Packets are guaranteed to be sent | 790 // Sequence number of the last sent packet. Packets are guaranteed to be sent |
791 // in sequence number order. | 791 // in sequence number order. |
792 QuicPacketSequenceNumber sequence_number_of_last_sent_packet_; | 792 QuicPacketSequenceNumber sequence_number_of_last_sent_packet_; |
793 | 793 |
794 // Sent packet manager which tracks the status of packets sent by this | 794 // Sent packet manager which tracks the status of packets sent by this |
795 // connection and contains the send and receive algorithms to determine when | 795 // connection and contains the send and receive algorithms to determine when |
796 // to send packets. | 796 // to send packets. |
797 QuicSentPacketManager sent_packet_manager_; | 797 QuicSentPacketManager sent_packet_manager_; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 | 832 |
833 // True if this is a secure QUIC connection. | 833 // True if this is a secure QUIC connection. |
834 bool is_secure_; | 834 bool is_secure_; |
835 | 835 |
836 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 836 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
837 }; | 837 }; |
838 | 838 |
839 } // namespace net | 839 } // namespace net |
840 | 840 |
841 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 841 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |