| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // indicating if the fin bit was consumed. This does not indicate the data | 338 // indicating if the fin bit was consumed. This does not indicate the data |
| 339 // has been sent on the wire: it may have been turned into a packet and queued | 339 // has been sent on the wire: it may have been turned into a packet and queued |
| 340 // if the socket was unexpectedly blocked. | 340 // if the socket was unexpectedly blocked. |
| 341 // If |listener| is provided, then it will be informed once ACKs have been | 341 // If |listener| is provided, then it will be informed once ACKs have been |
| 342 // received for all the packets written in this call. | 342 // received for all the packets written in this call. |
| 343 // The |listener| is not owned by the QuicConnection and must outlive it. | 343 // The |listener| is not owned by the QuicConnection and must outlive it. |
| 344 virtual QuicConsumedData SendStreamData( | 344 virtual QuicConsumedData SendStreamData( |
| 345 QuicStreamId id, | 345 QuicStreamId id, |
| 346 QuicIOVector iov, | 346 QuicIOVector iov, |
| 347 QuicStreamOffset offset, | 347 QuicStreamOffset offset, |
| 348 bool fin, | 348 StreamSendingState state, |
| 349 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener); | 349 QuicReferenceCountedPointer<QuicAckListenerInterface> ack_listener); |
| 350 | 350 |
| 351 // Send a RST_STREAM frame to the peer. | 351 // Send a RST_STREAM frame to the peer. |
| 352 virtual void SendRstStream(QuicStreamId id, | 352 virtual void SendRstStream(QuicStreamId id, |
| 353 QuicRstStreamErrorCode error, | 353 QuicRstStreamErrorCode error, |
| 354 QuicStreamOffset bytes_written); | 354 QuicStreamOffset bytes_written); |
| 355 | 355 |
| 356 // Send a BLOCKED frame to the peer. | 356 // Send a BLOCKED frame to the peer. |
| 357 virtual void SendBlocked(QuicStreamId id); | 357 virtual void SendBlocked(QuicStreamId id); |
| 358 | 358 |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 | 1081 |
| 1082 // Indicates not to send or process stop waiting frames. | 1082 // Indicates not to send or process stop waiting frames. |
| 1083 bool no_stop_waiting_frames_; | 1083 bool no_stop_waiting_frames_; |
| 1084 | 1084 |
| 1085 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1085 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1086 }; | 1086 }; |
| 1087 | 1087 |
| 1088 } // namespace net | 1088 } // namespace net |
| 1089 | 1089 |
| 1090 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ | 1090 #endif // NET_QUIC_CORE_QUIC_CONNECTION_H_ |
| OLD | NEW |