| 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 QuicRandom* random_generator_; | 676 QuicRandom* random_generator_; |
| 677 | 677 |
| 678 const QuicConnectionId connection_id_; | 678 const QuicConnectionId connection_id_; |
| 679 // Address on the last successfully processed packet received from the | 679 // Address on the last successfully processed packet received from the |
| 680 // client. | 680 // client. |
| 681 IPEndPoint self_address_; | 681 IPEndPoint self_address_; |
| 682 IPEndPoint peer_address_; | 682 IPEndPoint peer_address_; |
| 683 // Used to store latest peer port to possibly migrate to later. | 683 // Used to store latest peer port to possibly migrate to later. |
| 684 int migrating_peer_port_; | 684 int migrating_peer_port_; |
| 685 | 685 |
| 686 // True if the last packet has gotten far enough in the framer to be |
| 687 // decrypted. |
| 688 bool last_packet_decrypted_; |
| 686 bool last_packet_revived_; // True if the last packet was revived from FEC. | 689 bool last_packet_revived_; // True if the last packet was revived from FEC. |
| 687 size_t last_size_; // Size of the last received packet. | 690 size_t last_size_; // Size of the last received packet. |
| 688 EncryptionLevel last_decrypted_packet_level_; | 691 EncryptionLevel last_decrypted_packet_level_; |
| 689 QuicPacketHeader last_header_; | 692 QuicPacketHeader last_header_; |
| 690 std::vector<QuicStreamFrame> last_stream_frames_; | 693 std::vector<QuicStreamFrame> last_stream_frames_; |
| 691 std::vector<QuicAckFrame> last_ack_frames_; | 694 std::vector<QuicAckFrame> last_ack_frames_; |
| 692 std::vector<QuicCongestionFeedbackFrame> last_congestion_frames_; | 695 std::vector<QuicCongestionFeedbackFrame> last_congestion_frames_; |
| 693 std::vector<QuicStopWaitingFrame> last_stop_waiting_frames_; | 696 std::vector<QuicStopWaitingFrame> last_stop_waiting_frames_; |
| 694 std::vector<QuicRstStreamFrame> last_rst_frames_; | 697 std::vector<QuicRstStreamFrame> last_rst_frames_; |
| 695 std::vector<QuicGoAwayFrame> last_goaway_frames_; | 698 std::vector<QuicGoAwayFrame> last_goaway_frames_; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 // If non-empty this contains the set of versions received in a | 817 // If non-empty this contains the set of versions received in a |
| 815 // version negotiation packet. | 818 // version negotiation packet. |
| 816 QuicVersionVector server_supported_versions_; | 819 QuicVersionVector server_supported_versions_; |
| 817 | 820 |
| 818 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 821 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 819 }; | 822 }; |
| 820 | 823 |
| 821 } // namespace net | 824 } // namespace net |
| 822 | 825 |
| 823 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 826 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |