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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 QuicPacketSequenceNumber first_required_forward_secure_packet_; | 689 QuicPacketSequenceNumber first_required_forward_secure_packet_; |
690 const QuicClock* clock_; | 690 const QuicClock* clock_; |
691 QuicRandom* random_generator_; | 691 QuicRandom* random_generator_; |
692 | 692 |
693 const QuicConnectionId connection_id_; | 693 const QuicConnectionId connection_id_; |
694 // Address on the last successfully processed packet received from the | 694 // Address on the last successfully processed packet received from the |
695 // client. | 695 // client. |
696 IPEndPoint self_address_; | 696 IPEndPoint self_address_; |
697 IPEndPoint peer_address_; | 697 IPEndPoint peer_address_; |
698 // Used to store latest peer port to possibly migrate to later. | 698 // Used to store latest peer port to possibly migrate to later. |
699 int migrating_peer_port_; | 699 uint16 migrating_peer_port_; |
700 | 700 |
701 // True if the last packet has gotten far enough in the framer to be | 701 // True if the last packet has gotten far enough in the framer to be |
702 // decrypted. | 702 // decrypted. |
703 bool last_packet_decrypted_; | 703 bool last_packet_decrypted_; |
704 bool last_packet_revived_; // True if the last packet was revived from FEC. | 704 bool last_packet_revived_; // True if the last packet was revived from FEC. |
705 size_t last_size_; // Size of the last received packet. | 705 size_t last_size_; // Size of the last received packet. |
706 EncryptionLevel last_decrypted_packet_level_; | 706 EncryptionLevel last_decrypted_packet_level_; |
707 QuicPacketHeader last_header_; | 707 QuicPacketHeader last_header_; |
708 std::vector<QuicStreamFrame> last_stream_frames_; | 708 std::vector<QuicStreamFrame> last_stream_frames_; |
709 std::vector<QuicAckFrame> last_ack_frames_; | 709 std::vector<QuicAckFrame> last_ack_frames_; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 // If non-empty this contains the set of versions received in a | 836 // If non-empty this contains the set of versions received in a |
837 // version negotiation packet. | 837 // version negotiation packet. |
838 QuicVersionVector server_supported_versions_; | 838 QuicVersionVector server_supported_versions_; |
839 | 839 |
840 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 840 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
841 }; | 841 }; |
842 | 842 |
843 } // namespace net | 843 } // namespace net |
844 | 844 |
845 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 845 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |