| 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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 703 |
| 704 // When the version negotiation packet could not be sent because the socket | 704 // When the version negotiation packet could not be sent because the socket |
| 705 // was not writable, this is set to true. | 705 // was not writable, this is set to true. |
| 706 bool pending_version_negotiation_packet_; | 706 bool pending_version_negotiation_packet_; |
| 707 | 707 |
| 708 // When packets could not be sent because the socket was not writable, | 708 // When packets could not be sent because the socket was not writable, |
| 709 // they are added to this list. All corresponding frames are in | 709 // they are added to this list. All corresponding frames are in |
| 710 // unacked_packets_ if they are to be retransmitted. | 710 // unacked_packets_ if they are to be retransmitted. |
| 711 QueuedPacketList queued_packets_; | 711 QueuedPacketList queued_packets_; |
| 712 | 712 |
| 713 // Contains information about the current write in progress, if any. | |
| 714 scoped_ptr<QueuedPacket> pending_write_; | |
| 715 | |
| 716 // Contains the connection close packet if the connection has been closed. | 713 // Contains the connection close packet if the connection has been closed. |
| 717 scoped_ptr<QuicEncryptedPacket> connection_close_packet_; | 714 scoped_ptr<QuicEncryptedPacket> connection_close_packet_; |
| 718 | 715 |
| 719 FecGroupMap group_map_; | 716 FecGroupMap group_map_; |
| 720 | 717 |
| 721 QuicReceivedPacketManager received_packet_manager_; | 718 QuicReceivedPacketManager received_packet_manager_; |
| 722 QuicSentEntropyManager sent_entropy_manager_; | 719 QuicSentEntropyManager sent_entropy_manager_; |
| 723 | 720 |
| 724 // Indicates whether an ack should be sent the next time we try to write. | 721 // Indicates whether an ack should be sent the next time we try to write. |
| 725 bool ack_queued_; | 722 bool ack_queued_; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 // If non-empty this contains the set of versions received in a | 797 // If non-empty this contains the set of versions received in a |
| 801 // version negotiation packet. | 798 // version negotiation packet. |
| 802 QuicVersionVector server_supported_versions_; | 799 QuicVersionVector server_supported_versions_; |
| 803 | 800 |
| 804 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 801 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 805 }; | 802 }; |
| 806 | 803 |
| 807 } // namespace net | 804 } // namespace net |
| 808 | 805 |
| 809 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 806 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |