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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const uint32 kMaxInitialWindow = 100; | 63 const uint32 kMaxInitialWindow = 100; |
64 | 64 |
65 // Default size of initial flow control window, for both stream and session. | 65 // Default size of initial flow control window, for both stream and session. |
66 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB | 66 const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB |
67 | 67 |
68 // Maximum size of the congestion window, in packets, for TCP congestion control | 68 // Maximum size of the congestion window, in packets, for TCP congestion control |
69 // algorithms. | 69 // algorithms. |
70 const size_t kMaxTcpCongestionWindow = 200; | 70 const size_t kMaxTcpCongestionWindow = 200; |
71 | 71 |
72 // Size of the socket receive buffer in bytes. | 72 // Size of the socket receive buffer in bytes. |
73 const QuicByteCount kDefaultSocketReceiveBuffer = 256000; | 73 const QuicByteCount kDefaultSocketReceiveBuffer = 256 * 1024; |
74 | 74 |
75 // Don't allow a client to suggest an RTT longer than 15 seconds. | 75 // Don't allow a client to suggest an RTT longer than 15 seconds. |
76 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond; | 76 const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond; |
77 | 77 |
78 // Maximum number of open streams per connection. | 78 // Maximum number of open streams per connection. |
79 const size_t kDefaultMaxStreamsPerConnection = 100; | 79 const size_t kDefaultMaxStreamsPerConnection = 100; |
80 | 80 |
81 // Number of bytes reserved for public flags in the packet header. | 81 // Number of bytes reserved for public flags in the packet header. |
82 const size_t kPublicFlagsSize = 1; | 82 const size_t kPublicFlagsSize = 1; |
83 // Number of bytes reserved for version number in the packet header. | 83 // Number of bytes reserved for version number in the packet header. |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 // Stores the sequence numbers of all transmissions of this packet. | 1060 // Stores the sequence numbers of all transmissions of this packet. |
1061 // Can never be null. | 1061 // Can never be null. |
1062 SequenceNumberSet* all_transmissions; | 1062 SequenceNumberSet* all_transmissions; |
1063 // In flight packets have not been abandoned or lost. | 1063 // In flight packets have not been abandoned or lost. |
1064 bool in_flight; | 1064 bool in_flight; |
1065 }; | 1065 }; |
1066 | 1066 |
1067 } // namespace net | 1067 } // namespace net |
1068 | 1068 |
1069 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1069 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |