| 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 // The entity that handles framing writes for a Quic client or server. | 5 // The entity that handles framing writes for a Quic client or server. |
| 6 // Each QuicSession will have a connection associated with it. | 6 // Each QuicSession will have a connection associated with it. |
| 7 // | 7 // |
| 8 // On the server side, the Dispatcher handles the raw reads, and hands off | 8 // On the server side, the Dispatcher handles the raw reads, and hands off |
| 9 // packets via ProcessUdpPacket for framing and processing. | 9 // packets via ProcessUdpPacket for framing and processing. |
| 10 // | 10 // |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // Returns a pair with the number of bytes consumed from data, and a boolean | 320 // Returns a pair with the number of bytes consumed from data, and a boolean |
| 321 // indicating if the fin bit was consumed. This does not indicate the data | 321 // indicating if the fin bit was consumed. This does not indicate the data |
| 322 // has been sent on the wire: it may have been turned into a packet and queued | 322 // has been sent on the wire: it may have been turned into a packet and queued |
| 323 // if the socket was unexpectedly blocked. |fec_protection| indicates if | 323 // if the socket was unexpectedly blocked. |fec_protection| indicates if |
| 324 // data is to be FEC protected. Note that data that is sent immediately | 324 // data is to be FEC protected. Note that data that is sent immediately |
| 325 // following MUST_FEC_PROTECT data may get protected by falling within the | 325 // following MUST_FEC_PROTECT data may get protected by falling within the |
| 326 // same FEC group. | 326 // same FEC group. |
| 327 // If |listener| is provided, then it will be informed once ACKs have been | 327 // If |listener| is provided, then it will be informed once ACKs have been |
| 328 // received for all the packets written in this call. | 328 // received for all the packets written in this call. |
| 329 // The |listener| is not owned by the QuicConnection and must outlive it. | 329 // The |listener| is not owned by the QuicConnection and must outlive it. |
| 330 QuicConsumedData SendStreamData(QuicStreamId id, | 330 virtual QuicConsumedData SendStreamData(QuicStreamId id, |
| 331 QuicIOVector iov, | 331 QuicIOVector iov, |
| 332 QuicStreamOffset offset, | 332 QuicStreamOffset offset, |
| 333 bool fin, | 333 bool fin, |
| 334 FecProtection fec_protection, | 334 FecProtection fec_protection, |
| 335 QuicAckListenerInterface* listener); | 335 QuicAckListenerInterface* listener); |
| 336 | 336 |
| 337 // Send a RST_STREAM frame to the peer. | 337 // Send a RST_STREAM frame to the peer. |
| 338 virtual void SendRstStream(QuicStreamId id, | 338 virtual void SendRstStream(QuicStreamId id, |
| 339 QuicRstStreamErrorCode error, | 339 QuicRstStreamErrorCode error, |
| 340 QuicStreamOffset bytes_written); | 340 QuicStreamOffset bytes_written); |
| 341 | 341 |
| 342 // Send a BLOCKED frame to the peer. | 342 // Send a BLOCKED frame to the peer. |
| 343 virtual void SendBlocked(QuicStreamId id); | 343 virtual void SendBlocked(QuicStreamId id); |
| 344 | 344 |
| 345 // Send a WINDOW_UPDATE frame to the peer. | 345 // Send a WINDOW_UPDATE frame to the peer. |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 | 979 |
| 980 // Whether a GoAway has been received. | 980 // Whether a GoAway has been received. |
| 981 bool goaway_received_; | 981 bool goaway_received_; |
| 982 | 982 |
| 983 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 983 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 984 }; | 984 }; |
| 985 | 985 |
| 986 } // namespace net | 986 } // namespace net |
| 987 | 987 |
| 988 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 988 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |