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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 QuicFrames retransmittable_frames; | 1435 QuicFrames retransmittable_frames; |
1436 EncryptionLevel encryption_level; | 1436 EncryptionLevel encryption_level; |
1437 QuicPacketNumberLength packet_number_length; | 1437 QuicPacketNumberLength packet_number_length; |
1438 QuicPacketLength bytes_sent; | 1438 QuicPacketLength bytes_sent; |
1439 uint16_t nack_count; | 1439 uint16_t nack_count; |
1440 QuicTime sent_time; | 1440 QuicTime sent_time; |
1441 // Reason why this packet was transmitted. | 1441 // Reason why this packet was transmitted. |
1442 TransmissionType transmission_type; | 1442 TransmissionType transmission_type; |
1443 // In flight packets have not been abandoned or lost. | 1443 // In flight packets have not been abandoned or lost. |
1444 bool in_flight; | 1444 bool in_flight; |
1445 // True if the packet can never be acked, so it can be removed. | 1445 // True if the packet can never be acked, so it can be removed. Occurs when |
| 1446 // a packet is never sent, after it is acknowledged once, or if it's a crypto |
| 1447 // packet we never expect to receive an ack for. |
1446 bool is_unackable; | 1448 bool is_unackable; |
1447 // True if the packet contains stream data from the crypto stream. | 1449 // True if the packet contains stream data from the crypto stream. |
1448 bool has_crypto_handshake; | 1450 bool has_crypto_handshake; |
1449 // Non-zero if the packet needs padding if it's retransmitted. | 1451 // Non-zero if the packet needs padding if it's retransmitted. |
1450 int num_padding_bytes; | 1452 int num_padding_bytes; |
1451 // Stores the packet number of the next retransmission of this packet. | 1453 // Stores the packet number of the next retransmission of this packet. |
1452 // Zero if the packet has not been retransmitted. | 1454 // Zero if the packet has not been retransmitted. |
1453 QuicPacketNumber retransmission; | 1455 QuicPacketNumber retransmission; |
1454 // Non-empty if there is a listener for this packet. | 1456 // Non-empty if there is a listener for this packet. |
1455 std::list<AckListenerWrapper> ack_listeners; | 1457 std::list<AckListenerWrapper> ack_listeners; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1493 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1492 | 1494 |
1493 const struct iovec* iov; | 1495 const struct iovec* iov; |
1494 const int iov_count; | 1496 const int iov_count; |
1495 const size_t total_length; | 1497 const size_t total_length; |
1496 }; | 1498 }; |
1497 | 1499 |
1498 } // namespace net | 1500 } // namespace net |
1499 | 1501 |
1500 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1502 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |