OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/quic/core/frames/quic_rst_stream_frame.h" |
| 6 |
| 7 using std::ostream; |
| 8 |
| 9 namespace net { |
| 10 |
| 11 QuicRstStreamFrame::QuicRstStreamFrame() |
| 12 : stream_id(0), error_code(QUIC_STREAM_NO_ERROR), byte_offset(0) {} |
| 13 |
| 14 QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id, |
| 15 QuicRstStreamErrorCode error_code, |
| 16 QuicStreamOffset bytes_written) |
| 17 : stream_id(stream_id), |
| 18 error_code(error_code), |
| 19 byte_offset(bytes_written) {} |
| 20 |
| 21 ostream& operator<<(ostream& os, const QuicRstStreamFrame& rst_frame) { |
| 22 os << "{ stream_id: " << rst_frame.stream_id |
| 23 << ", error_code: " << rst_frame.error_code << " }\n"; |
| 24 return os; |
| 25 } |
| 26 |
| 27 } // namespace net |
OLD | NEW |