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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 const QuicDecrypter* decrypter() const; | 452 const QuicDecrypter* decrypter() const; |
453 const QuicDecrypter* alternative_decrypter() const; | 453 const QuicDecrypter* alternative_decrypter() const; |
454 | 454 |
455 bool is_server() const { return is_server_; } | 455 bool is_server() const { return is_server_; } |
456 | 456 |
457 // Returns the underlying sent packet manager. | 457 // Returns the underlying sent packet manager. |
458 const QuicSentPacketManager& sent_packet_manager() const { | 458 const QuicSentPacketManager& sent_packet_manager() const { |
459 return sent_packet_manager_; | 459 return sent_packet_manager_; |
460 } | 460 } |
461 | 461 |
462 bool CanWrite(TransmissionType transmission_type, | 462 bool CanWrite(HasRetransmittableData retransmittable); |
463 HasRetransmittableData retransmittable); | |
464 | 463 |
465 // Stores current batch state for connection, puts the connection | 464 // Stores current batch state for connection, puts the connection |
466 // into batch mode, and destruction restores the stored batch state. | 465 // into batch mode, and destruction restores the stored batch state. |
467 // While the bundler is in scope, any generated frames are bundled | 466 // While the bundler is in scope, any generated frames are bundled |
468 // as densely as possible into packets. In addition, this bundler | 467 // as densely as possible into packets. In addition, this bundler |
469 // can be configured to ensure that an ACK frame is included in the | 468 // can be configured to ensure that an ACK frame is included in the |
470 // first packet created, if there's new ack information to be sent. | 469 // first packet created, if there's new ack information to be sent. |
471 class ScopedPacketBundler { | 470 class ScopedPacketBundler { |
472 public: | 471 public: |
473 // In addition to all outgoing frames being bundled when the | 472 // In addition to all outgoing frames being bundled when the |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 // If non-empty this contains the set of versions received in a | 756 // If non-empty this contains the set of versions received in a |
758 // version negotiation packet. | 757 // version negotiation packet. |
759 QuicVersionVector server_supported_versions_; | 758 QuicVersionVector server_supported_versions_; |
760 | 759 |
761 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 760 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
762 }; | 761 }; |
763 | 762 |
764 } // namespace net | 763 } // namespace net |
765 | 764 |
766 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 765 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
OLD | NEW |