Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: net/quic/quic_protocol.h

Issue 351133002: Adds an internal server and chromium's flag for disabling/enabling FEC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_server_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // This is the default network timeout a for connection till the crypto 106 // This is the default network timeout a for connection till the crypto
107 // handshake succeeds and the negotiated timeout from the handshake is received. 107 // handshake succeeds and the negotiated timeout from the handshake is received.
108 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins. 108 const int64 kDefaultInitialTimeoutSecs = 120; // 2 mins.
109 const int64 kDefaultTimeoutSecs = 60 * 10; // 10 minutes. 109 const int64 kDefaultTimeoutSecs = 60 * 10; // 10 minutes.
110 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 5; // 5 secs. 110 const int64 kDefaultMaxTimeForCryptoHandshakeSecs = 5; // 5 secs.
111 111
112 // Default ping timeout. 112 // Default ping timeout.
113 const int64 kPingTimeoutSecs = 15; // 15 secs. 113 const int64 kPingTimeoutSecs = 15; // 15 secs.
114 114
115 // Default max packets in an FEC group.
116 const size_t kMaxPacketsPerFecGroup = 10;
117
115 // We define an unsigned 16-bit floating point value, inspired by IEEE floats 118 // We define an unsigned 16-bit floating point value, inspired by IEEE floats
116 // (http://en.wikipedia.org/wiki/Half_precision_floating-point_format), 119 // (http://en.wikipedia.org/wiki/Half_precision_floating-point_format),
117 // with 5-bit exponent (bias 1), 11-bit mantissa (effective 12 with hidden 120 // with 5-bit exponent (bias 1), 11-bit mantissa (effective 12 with hidden
118 // bit) and denormals, but without signs, transfinites or fractions. Wire format 121 // bit) and denormals, but without signs, transfinites or fractions. Wire format
119 // 16 bits (little-endian byte order) are split into exponent (high 5) and 122 // 16 bits (little-endian byte order) are split into exponent (high 5) and
120 // mantissa (low 11) and decoded as: 123 // mantissa (low 11) and decoded as:
121 // uint64 value; 124 // uint64 value;
122 // if (exponent == 0) value = mantissa; 125 // if (exponent == 0) value = mantissa;
123 // else value = (mantissa | 1 << 11) << (exponent - 1) 126 // else value = (mantissa | 1 << 11) << (exponent - 1)
124 const int kUFloat16ExponentBits = 5; 127 const int kUFloat16ExponentBits = 5;
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 // Stores the sequence numbers of all transmissions of this packet. 1066 // Stores the sequence numbers of all transmissions of this packet.
1064 // Can never be null. 1067 // Can never be null.
1065 SequenceNumberSet* all_transmissions; 1068 SequenceNumberSet* all_transmissions;
1066 // In flight packets have not been abandoned or lost. 1069 // In flight packets have not been abandoned or lost.
1067 bool in_flight; 1070 bool in_flight;
1068 }; 1071 };
1069 1072
1070 } // namespace net 1073 } // namespace net
1071 1074
1072 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1075 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_server_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698