| 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 #include <limits> | 10 #include <limits> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Default maximum packet size used in the Linux TCP implementation. | 67 // Default maximum packet size used in the Linux TCP implementation. |
| 68 // Used in QUIC for congestion window computations in bytes. | 68 // Used in QUIC for congestion window computations in bytes. |
| 69 const QuicByteCount kDefaultTCPMSS = 1460; | 69 const QuicByteCount kDefaultTCPMSS = 1460; |
| 70 | 70 |
| 71 // We match SPDY's use of 32 (since we'd compete with SPDY). | 71 // We match SPDY's use of 32 (since we'd compete with SPDY). |
| 72 const QuicPacketCount kInitialCongestionWindow = 32; | 72 const QuicPacketCount kInitialCongestionWindow = 32; |
| 73 | 73 |
| 74 // Minimum size of initial flow control window, for both stream and session. | 74 // Minimum size of initial flow control window, for both stream and session. |
| 75 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB | 75 const uint32 kMinimumFlowControlSendWindow = 16 * 1024; // 16 KB |
| 76 | 76 |
| 77 // Maximum flow control receive window limits for connection and stream. |
| 78 const QuicByteCount kStreamReceiveWindowLimit = 16 * 1024 * 1024; // 16 MB |
| 79 const QuicByteCount kSessionReceiveWindowLimit = 24 * 1024 * 1024; // 24 MB |
| 80 |
| 77 // Minimum size of the CWND, in packets, when doing bandwidth resumption. | 81 // Minimum size of the CWND, in packets, when doing bandwidth resumption. |
| 78 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; | 82 const QuicPacketCount kMinCongestionWindowForBandwidthResumption = 10; |
| 79 | 83 |
| 80 // Maximum size of the CWND, in packets. | 84 // Maximum size of the CWND, in packets. |
| 81 const QuicPacketCount kMaxCongestionWindow = 200; | 85 const QuicPacketCount kMaxCongestionWindow = 200; |
| 82 | 86 |
| 83 // Maximum number of tracked packets. | 87 // Maximum number of tracked packets. |
| 84 const QuicPacketCount kMaxTrackedPackets = 5000; | 88 const QuicPacketCount kMaxTrackedPackets = 5000; |
| 85 | 89 |
| 86 // Default size of the socket receive buffer in bytes. | 90 // Default size of the socket receive buffer in bytes. |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1239 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1243 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1240 | 1244 |
| 1241 const struct iovec* iov; | 1245 const struct iovec* iov; |
| 1242 const int iov_count; | 1246 const int iov_count; |
| 1243 const size_t total_length; | 1247 const size_t total_length; |
| 1244 }; | 1248 }; |
| 1245 | 1249 |
| 1246 } // namespace net | 1250 } // namespace net |
| 1247 | 1251 |
| 1248 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1252 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |