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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 | 903 |
904 // True if the last packet has gotten far enough in the framer to be | 904 // True if the last packet has gotten far enough in the framer to be |
905 // decrypted. | 905 // decrypted. |
906 bool last_packet_decrypted_; | 906 bool last_packet_decrypted_; |
907 QuicByteCount last_size_; // Size of the last received packet. | 907 QuicByteCount last_size_; // Size of the last received packet. |
908 // TODO(rch): remove this when b/27221014 is fixed. | 908 // TODO(rch): remove this when b/27221014 is fixed. |
909 const char* current_packet_data_; // UDP payload of packet currently being | 909 const char* current_packet_data_; // UDP payload of packet currently being |
910 // parsed or nullptr. | 910 // parsed or nullptr. |
911 EncryptionLevel last_decrypted_packet_level_; | 911 EncryptionLevel last_decrypted_packet_level_; |
912 QuicPacketHeader last_header_; | 912 QuicPacketHeader last_header_; |
| 913 // TODO(ianswett): Remove last_stop_waiting_frame_ once |
| 914 // FLAGS_quic_receive_packet_once_decrypted is deprecated. |
913 QuicStopWaitingFrame last_stop_waiting_frame_; | 915 QuicStopWaitingFrame last_stop_waiting_frame_; |
914 bool should_last_packet_instigate_acks_; | 916 bool should_last_packet_instigate_acks_; |
| 917 // Whether the most recent packet was missing before it was received. |
| 918 bool was_last_packet_missing_; |
915 | 919 |
916 // Track some peer state so we can do less bookkeeping | 920 // Track some peer state so we can do less bookkeeping |
917 // Largest sequence sent by the peer which had an ack frame (latest ack info). | 921 // Largest sequence sent by the peer which had an ack frame (latest ack info). |
918 QuicPacketNumber largest_seen_packet_with_ack_; | 922 QuicPacketNumber largest_seen_packet_with_ack_; |
919 | 923 |
920 // Largest packet number sent by the peer which had a stop waiting frame. | 924 // Largest packet number sent by the peer which had a stop waiting frame. |
921 QuicPacketNumber largest_seen_packet_with_stop_waiting_; | 925 QuicPacketNumber largest_seen_packet_with_stop_waiting_; |
922 | 926 |
923 // Collection of packets which were received before encryption was | 927 // Collection of packets which were received before encryption was |
924 // established, but which could not be decrypted. We buffer these on | 928 // established, but which could not be decrypted. We buffer these on |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 // Indicates whether a write error is encountered currently. This is used to | 1112 // Indicates whether a write error is encountered currently. This is used to |
1109 // avoid infinite write errors. | 1113 // avoid infinite write errors. |
1110 bool write_error_occured_; | 1114 bool write_error_occured_; |
1111 | 1115 |
1112 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1116 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
1113 }; | 1117 }; |
1114 | 1118 |
1115 } // namespace net | 1119 } // namespace net |
1116 | 1120 |
1117 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1121 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |