diff options
Diffstat (limited to 'net/quic/quic_protocol.h')
-rw-r--r-- | net/quic/quic_protocol.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h index c42d1fe..8532a22 100644 --- a/net/quic/quic_protocol.h +++ b/net/quic/quic_protocol.h @@ -377,8 +377,6 @@ enum QuicErrorCode { QUIC_INVALID_CRYPTO_MESSAGE_TYPE = 33, // A crypto message was received with an illegal parameter. QUIC_INVALID_CRYPTO_MESSAGE_PARAMETER = 34, - // An invalid channel id signature was supplied. - QUIC_INVALID_CHANNEL_ID_SIGNATURE = 52, // A crypto message was received with a mandatory parameter missing. QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND = 35, // A crypto message was received with a parameter that has no overlap @@ -407,7 +405,7 @@ enum QuicErrorCode { QUIC_CRYPTO_SERVER_CONFIG_EXPIRED = 45, // No error. Used as bound while iterating. - QUIC_LAST_ERROR = 53, + QUIC_LAST_ERROR = 52, }; struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { @@ -872,26 +870,6 @@ struct QuicConsumedData { bool fin_consumed; }; -enum WriteStatus { - WRITE_STATUS_OK, - WRITE_STATUS_BLOCKED, - WRITE_STATUS_ERROR, -}; - -// A struct used to return the result of write calls including either the number -// of bytes written or the error code, depending upon the status. -struct NET_EXPORT_PRIVATE WriteResult { - WriteResult(WriteStatus status, int bytes_written_or_error_code) : - status(status), bytes_written(bytes_written_or_error_code) { - } - - WriteStatus status; - union { - int bytes_written; // only valid when status is OK - int error_code; // only valid when status is ERROR - }; -}; - } // namespace net #endif // NET_QUIC_QUIC_PROTOCOL_H_ |