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 #ifndef NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ |
| 6 #define NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ |
| 7 |
| 8 #include "net/base/net_export.h" |
| 9 #include "net/quic/core/quic_types.h" |
| 10 |
| 11 namespace net { |
| 12 |
| 13 // The PATH_CLOSE frame is used to explicitly close a path. Both endpoints can |
| 14 // send a PATH_CLOSE frame to initiate a path termination. A path is considered |
| 15 // to be closed either a PATH_CLOSE frame is sent or received. An endpoint drops |
| 16 // receive side of a closed path, and packets with retransmittable frames on a |
| 17 // closed path are marked as retransmissions which will be transmitted on other |
| 18 // paths. |
| 19 struct NET_EXPORT_PRIVATE QuicPathCloseFrame { |
| 20 QuicPathCloseFrame() {} |
| 21 explicit QuicPathCloseFrame(QuicPathId path_id); |
| 22 |
| 23 friend NET_EXPORT_PRIVATE std::ostream& operator<<( |
| 24 std::ostream& os, |
| 25 const QuicPathCloseFrame& p); |
| 26 |
| 27 QuicPathId path_id; |
| 28 }; |
| 29 |
| 30 } // namespace net |
| 31 |
| 32 #endif // NET_QUIC_CORE_QUIC_FRAMES_H_ |
OLD | NEW |