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 <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // QuicTag is the type of a tag in the wire protocol. | 42 // QuicTag is the type of a tag in the wire protocol. |
43 typedef uint32 QuicTag; | 43 typedef uint32 QuicTag; |
44 typedef std::vector<QuicTag> QuicTagVector; | 44 typedef std::vector<QuicTag> QuicTagVector; |
45 typedef std::map<QuicTag, std::string> QuicTagValueMap; | 45 typedef std::map<QuicTag, std::string> QuicTagValueMap; |
46 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and | 46 // TODO(rtenneti): Didn't use SpdyPriority because SpdyPriority is uint8 and |
47 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION. | 47 // QuicPriority is uint32. Use SpdyPriority when we change the QUIC_VERSION. |
48 typedef uint32 QuicPriority; | 48 typedef uint32 QuicPriority; |
49 | 49 |
50 // TODO(rch): Consider Quic specific names for these constants. | 50 // TODO(rch): Consider Quic specific names for these constants. |
51 // Default and initial maximum size in bytes of a QUIC packet. | 51 // Default and initial maximum size in bytes of a QUIC packet. |
52 const QuicByteCount kDefaultMaxPacketSize = 1200; | 52 const QuicByteCount kDefaultMaxPacketSize = 1350; |
53 // The maximum packet size of any QUIC packet, based on ethernet's max size, | 53 // The maximum packet size of any QUIC packet, based on ethernet's max size, |
54 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an | 54 // minus the IP and UDP headers. IPv6 has a 40 byte header, UPD adds an |
55 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's | 55 // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's |
56 // max packet size is 1500 bytes, 1500 - 48 = 1452. | 56 // max packet size is 1500 bytes, 1500 - 48 = 1452. |
57 const QuicByteCount kMaxPacketSize = 1452; | 57 const QuicByteCount kMaxPacketSize = 1452; |
58 // Default maximum packet size used in Linux TCP implementations. | 58 // Default maximum packet size used in Linux TCP implementations. |
59 const QuicByteCount kDefaultTCPMSS = 1460; | 59 const QuicByteCount kDefaultTCPMSS = 1460; |
60 | 60 |
61 // Maximum size of the initial congestion window in packets. | 61 // Maximum size of the initial congestion window in packets. |
62 const size_t kDefaultInitialWindow = 10; | 62 const size_t kDefaultInitialWindow = 10; |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 // Stores the sequence numbers of all transmissions of this packet. | 1053 // Stores the sequence numbers of all transmissions of this packet. |
1054 // Can never be null. | 1054 // Can never be null. |
1055 SequenceNumberSet* all_transmissions; | 1055 SequenceNumberSet* all_transmissions; |
1056 // In flight packets have not been abandoned or lost. | 1056 // In flight packets have not been abandoned or lost. |
1057 bool in_flight; | 1057 bool in_flight; |
1058 }; | 1058 }; |
1059 | 1059 |
1060 } // namespace net | 1060 } // namespace net |
1061 | 1061 |
1062 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1062 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |