| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 QUIC_INVALID_GOAWAY_DATA = 8, | 487 QUIC_INVALID_GOAWAY_DATA = 8, |
| 488 // WINDOW_UPDATE frame data is malformed. | 488 // WINDOW_UPDATE frame data is malformed. |
| 489 QUIC_INVALID_WINDOW_UPDATE_DATA = 57, | 489 QUIC_INVALID_WINDOW_UPDATE_DATA = 57, |
| 490 // BLOCKED frame data is malformed. | 490 // BLOCKED frame data is malformed. |
| 491 QUIC_INVALID_BLOCKED_DATA = 58, | 491 QUIC_INVALID_BLOCKED_DATA = 58, |
| 492 // STOP_WAITING frame data is malformed. | 492 // STOP_WAITING frame data is malformed. |
| 493 QUIC_INVALID_STOP_WAITING_DATA = 60, | 493 QUIC_INVALID_STOP_WAITING_DATA = 60, |
| 494 // ACK frame data is malformed. | 494 // ACK frame data is malformed. |
| 495 QUIC_INVALID_ACK_DATA = 9, | 495 QUIC_INVALID_ACK_DATA = 9, |
| 496 | 496 |
| 497 // deprecated: QUIC_INVALID_CONGESTION_FEEDBACK_DATA = 47, | |
| 498 | |
| 499 // Version negotiation packet is malformed. | 497 // Version negotiation packet is malformed. |
| 500 QUIC_INVALID_VERSION_NEGOTIATION_PACKET = 10, | 498 QUIC_INVALID_VERSION_NEGOTIATION_PACKET = 10, |
| 501 // Public RST packet is malformed. | 499 // Public RST packet is malformed. |
| 502 QUIC_INVALID_PUBLIC_RST_PACKET = 11, | 500 QUIC_INVALID_PUBLIC_RST_PACKET = 11, |
| 503 // There was an error decrypting. | 501 // There was an error decrypting. |
| 504 QUIC_DECRYPTION_FAILURE = 12, | 502 QUIC_DECRYPTION_FAILURE = 12, |
| 505 // There was an error encrypting. | 503 // There was an error encrypting. |
| 506 QUIC_ENCRYPTION_FAILURE = 13, | 504 QUIC_ENCRYPTION_FAILURE = 13, |
| 507 // The packet exceeded kMaxPacketSize. | 505 // The packet exceeded kMaxPacketSize. |
| 508 QUIC_PACKET_TOO_LARGE = 14, | 506 QUIC_PACKET_TOO_LARGE = 14, |
| 509 // Data was sent for a stream which did not exist. | |
| 510 QUIC_PACKET_FOR_NONEXISTENT_STREAM = 15, | |
| 511 // The peer is going away. May be a client or server. | 507 // The peer is going away. May be a client or server. |
| 512 QUIC_PEER_GOING_AWAY = 16, | 508 QUIC_PEER_GOING_AWAY = 16, |
| 513 // A stream ID was invalid. | 509 // A stream ID was invalid. |
| 514 QUIC_INVALID_STREAM_ID = 17, | 510 QUIC_INVALID_STREAM_ID = 17, |
| 515 // A priority was invalid. | 511 // A priority was invalid. |
| 516 QUIC_INVALID_PRIORITY = 49, | 512 QUIC_INVALID_PRIORITY = 49, |
| 517 // Too many streams already open. | 513 // Too many streams already open. |
| 518 QUIC_TOO_MANY_OPEN_STREAMS = 18, | 514 QUIC_TOO_MANY_OPEN_STREAMS = 18, |
| 519 // The peer must send a FIN/RST for each stream, and has not been doing so. | 515 // The peer must send a FIN/RST for each stream, and has not been doing so. |
| 520 QUIC_TOO_MANY_UNFINISHED_STREAMS = 66, | 516 QUIC_TOO_MANY_UNFINISHED_STREAMS = 66, |
| 521 // The peer created too many available streams. | 517 // The peer created too many available streams. |
| 522 QUIC_TOO_MANY_AVAILABLE_STREAMS = 76, | 518 QUIC_TOO_MANY_AVAILABLE_STREAMS = 76, |
| 523 // Received public reset for this connection. | 519 // Received public reset for this connection. |
| 524 QUIC_PUBLIC_RESET = 19, | 520 QUIC_PUBLIC_RESET = 19, |
| 525 // Invalid protocol version. | 521 // Invalid protocol version. |
| 526 QUIC_INVALID_VERSION = 20, | 522 QUIC_INVALID_VERSION = 20, |
| 527 | 523 |
| 528 // deprecated: QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED = 21 | |
| 529 | |
| 530 // The Header ID for a stream was too far from the previous. | 524 // The Header ID for a stream was too far from the previous. |
| 531 QUIC_INVALID_HEADER_ID = 22, | 525 QUIC_INVALID_HEADER_ID = 22, |
| 532 // Negotiable parameter received during handshake had invalid value. | 526 // Negotiable parameter received during handshake had invalid value. |
| 533 QUIC_INVALID_NEGOTIATED_VALUE = 23, | 527 QUIC_INVALID_NEGOTIATED_VALUE = 23, |
| 534 // There was an error decompressing data. | 528 // There was an error decompressing data. |
| 535 QUIC_DECOMPRESSION_FAILURE = 24, | 529 QUIC_DECOMPRESSION_FAILURE = 24, |
| 536 // We hit our prenegotiated (or default) timeout | 530 // We hit our prenegotiated (or default) timeout |
| 537 QUIC_CONNECTION_TIMED_OUT = 25, | 531 QUIC_CONNECTION_TIMED_OUT = 25, |
| 538 // We hit our overall connection timeout | 532 // We hit our overall connection timeout |
| 539 QUIC_CONNECTION_OVERALL_TIMED_OUT = 67, | 533 QUIC_CONNECTION_OVERALL_TIMED_OUT = 67, |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1220 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1227 | 1221 |
| 1228 const struct iovec* iov; | 1222 const struct iovec* iov; |
| 1229 const int iov_count; | 1223 const int iov_count; |
| 1230 const size_t total_length; | 1224 const size_t total_length; |
| 1231 }; | 1225 }; |
| 1232 | 1226 |
| 1233 } // namespace net | 1227 } // namespace net |
| 1234 | 1228 |
| 1235 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1229 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |