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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 bool pending_version_negotiation_packet_; | 738 bool pending_version_negotiation_packet_; |
739 | 739 |
740 // When packets could not be sent because the socket was not writable, | 740 // When packets could not be sent because the socket was not writable, |
741 // they are added to this list. All corresponding frames are in | 741 // they are added to this list. All corresponding frames are in |
742 // unacked_packets_ if they are to be retransmitted. | 742 // unacked_packets_ if they are to be retransmitted. |
743 QueuedPacketList queued_packets_; | 743 QueuedPacketList queued_packets_; |
744 | 744 |
745 // Contains the connection close packet if the connection has been closed. | 745 // Contains the connection close packet if the connection has been closed. |
746 scoped_ptr<QuicEncryptedPacket> connection_close_packet_; | 746 scoped_ptr<QuicEncryptedPacket> connection_close_packet_; |
747 | 747 |
| 748 // When true, the connection does not send a close packet on timeout. |
| 749 bool silent_close_enabled_; |
| 750 |
748 FecGroupMap group_map_; | 751 FecGroupMap group_map_; |
749 | 752 |
750 QuicReceivedPacketManager received_packet_manager_; | 753 QuicReceivedPacketManager received_packet_manager_; |
751 QuicSentEntropyManager sent_entropy_manager_; | 754 QuicSentEntropyManager sent_entropy_manager_; |
752 | 755 |
753 // Indicates whether an ack should be sent the next time we try to write. | 756 // Indicates whether an ack should be sent the next time we try to write. |
754 bool ack_queued_; | 757 bool ack_queued_; |
755 // Indicates how many consecutive packets have arrived without sending an ack. | 758 // Indicates how many consecutive packets have arrived without sending an ack. |
756 QuicPacketCount num_packets_received_since_last_ack_sent_; | 759 QuicPacketCount num_packets_received_since_last_ack_sent_; |
757 // Indicates how many consecutive times an ack has arrived which indicates | 760 // Indicates how many consecutive times an ack has arrived which indicates |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 | 841 |
839 // True if this is a secure QUIC connection. | 842 // True if this is a secure QUIC connection. |
840 bool is_secure_; | 843 bool is_secure_; |
841 | 844 |
842 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 845 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
843 }; | 846 }; |
844 | 847 |
845 } // namespace net | 848 } // namespace net |
846 | 849 |
847 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 850 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |