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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 // A crypto message was received that contained a parameter with too few | 213 // A crypto message was received that contained a parameter with too few |
214 // values. | 214 // values. |
215 QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND, | 215 QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND, |
216 // An internal error occured in crypto processing. | 216 // An internal error occured in crypto processing. |
217 QUIC_CRYPTO_INTERNAL_ERROR, | 217 QUIC_CRYPTO_INTERNAL_ERROR, |
218 // A crypto handshake message specified an unsupported version. | 218 // A crypto handshake message specified an unsupported version. |
219 QUIC_VERSION_NOT_SUPPORTED, | 219 QUIC_VERSION_NOT_SUPPORTED, |
220 // There was no intersection between the crypto primitives supported by the | 220 // There was no intersection between the crypto primitives supported by the |
221 // peer and ourselves. | 221 // peer and ourselves. |
222 QUIC_CRYPTO_NO_SUPPORT, | 222 QUIC_CRYPTO_NO_SUPPORT, |
| 223 // The server rejected our client hello messages too many times. |
| 224 QUIC_CRYPTO_TOO_MANY_REJECTS, |
223 | 225 |
224 // No error. Used as bound while iterating. | 226 // No error. Used as bound while iterating. |
225 QUIC_LAST_ERROR, | 227 QUIC_LAST_ERROR, |
226 }; | 228 }; |
227 | 229 |
228 // Version and Crypto tags are written to the wire with a big-endian | 230 // Version and Crypto tags are written to the wire with a big-endian |
229 // representation of the name of the tag. For example | 231 // representation of the name of the tag. For example |
230 // the client hello tag (CHLO) will be written as the | 232 // the client hello tag (CHLO) will be written as the |
231 // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is | 233 // following 4 bytes: 'C' 'H' 'L' 'O'. Since it is |
232 // stored in memory as a little endian uint32, we need | 234 // stored in memory as a little endian uint32, we need |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 658 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
657 std::ostream& os, const QuicConsumedData& s); | 659 std::ostream& os, const QuicConsumedData& s); |
658 | 660 |
659 size_t bytes_consumed; | 661 size_t bytes_consumed; |
660 bool fin_consumed; | 662 bool fin_consumed; |
661 }; | 663 }; |
662 | 664 |
663 } // namespace net | 665 } // namespace net |
664 | 666 |
665 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 667 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |