| 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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 | 826 |
| 827 // Sets the ping alarm to the appropriate value, if any. | 827 // Sets the ping alarm to the appropriate value, if any. |
| 828 void SetPingAlarm(); | 828 void SetPingAlarm(); |
| 829 | 829 |
| 830 // Sets the retransmission alarm based on SentPacketManager. | 830 // Sets the retransmission alarm based on SentPacketManager. |
| 831 void SetRetransmissionAlarm(); | 831 void SetRetransmissionAlarm(); |
| 832 | 832 |
| 833 // Sets the MTU discovery alarm if necessary. | 833 // Sets the MTU discovery alarm if necessary. |
| 834 void MaybeSetMtuAlarm(); | 834 void MaybeSetMtuAlarm(); |
| 835 | 835 |
| 836 // On arrival of a new packet, checks to see if the socket addresses have | |
| 837 // changed since the last packet we saw on this connection. | |
| 838 void CheckForAddressMigration(const IPEndPoint& self_address, | |
| 839 const IPEndPoint& peer_address); | |
| 840 | |
| 841 HasRetransmittableData IsRetransmittable(const SerializedPacket& packet); | 836 HasRetransmittableData IsRetransmittable(const SerializedPacket& packet); |
| 842 bool IsTerminationPacket(const SerializedPacket& packet); | 837 bool IsTerminationPacket(const SerializedPacket& packet); |
| 843 | 838 |
| 844 // Set the size of the packet we are targeting while doing path MTU discovery. | 839 // Set the size of the packet we are targeting while doing path MTU discovery. |
| 845 void SetMtuDiscoveryTarget(QuicByteCount target); | 840 void SetMtuDiscoveryTarget(QuicByteCount target); |
| 846 | 841 |
| 847 // Returns |suggested_max_packet_size| clamped to any limits set by the | 842 // Returns |suggested_max_packet_size| clamped to any limits set by the |
| 848 // underlying writer, connection, or protocol. | 843 // underlying writer, connection, or protocol. |
| 849 QuicByteCount GetLimitedMaxPacketSize( | 844 QuicByteCount GetLimitedMaxPacketSize( |
| 850 QuicByteCount suggested_max_packet_size); | 845 QuicByteCount suggested_max_packet_size); |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 // Indicates whether a write error is encountered currently. This is used to | 1100 // Indicates whether a write error is encountered currently. This is used to |
| 1106 // avoid infinite write errors. | 1101 // avoid infinite write errors. |
| 1107 bool write_error_occured_; | 1102 bool write_error_occured_; |
| 1108 | 1103 |
| 1109 DISALLOW_COPY_AND_ASSIGN(QuicConnection); | 1104 DISALLOW_COPY_AND_ASSIGN(QuicConnection); |
| 1110 }; | 1105 }; |
| 1111 | 1106 |
| 1112 } // namespace net | 1107 } // namespace net |
| 1113 | 1108 |
| 1114 #endif // NET_QUIC_QUIC_CONNECTION_H_ | 1109 #endif // NET_QUIC_QUIC_CONNECTION_H_ |
| OLD | NEW |