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 // Handles packets for guids in time wait state by discarding the packet and | 5 // Handles packets for guids in time wait state by discarding the packet and |
6 // sending the clients a public reset packet with exponential backoff. | 6 // sending the clients a public reset packet with exponential backoff. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
9 #define NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 9 #define NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Called by the dispatcher when the underlying socket becomes writable again, | 64 // Called by the dispatcher when the underlying socket becomes writable again, |
65 // since we might need to send pending public reset packets which we didn't | 65 // since we might need to send pending public reset packets which we didn't |
66 // send because the underlying socket was write blocked. | 66 // send because the underlying socket was write blocked. |
67 virtual bool OnCanWrite() OVERRIDE; | 67 virtual bool OnCanWrite() OVERRIDE; |
68 | 68 |
69 // Used to delete guid entries that have outlived their time wait period. | 69 // Used to delete guid entries that have outlived their time wait period. |
70 void CleanUpOldGuids(); | 70 void CleanUpOldGuids(); |
71 | 71 |
72 // FramerVisitorInterface | 72 // FramerVisitorInterface |
73 virtual void OnError(QuicFramer* framer) OVERRIDE; | 73 virtual void OnError(QuicFramer* framer) OVERRIDE; |
74 virtual bool OnProtocolVersionMismatch( | 74 virtual bool OnProtocolVersionMismatch(QuicTag received_version) OVERRIDE; |
75 QuicVersionTag received_version) OVERRIDE; | |
76 virtual bool OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; | 75 virtual bool OnPacketHeader(const QuicPacketHeader& header) OVERRIDE; |
77 virtual void OnPacket() OVERRIDE {} | 76 virtual void OnPacket() OVERRIDE {} |
78 virtual void OnPublicResetPacket( | 77 virtual void OnPublicResetPacket( |
79 const QuicPublicResetPacket& packet) OVERRIDE {} | 78 const QuicPublicResetPacket& packet) OVERRIDE {} |
80 virtual void OnVersionNegotiationPacket( | 79 virtual void OnVersionNegotiationPacket( |
81 const QuicVersionNegotiationPacket& /*packet*/) OVERRIDE {} | 80 const QuicVersionNegotiationPacket& /*packet*/) OVERRIDE {} |
82 | 81 |
83 virtual void OnPacketComplete() OVERRIDE {} | 82 virtual void OnPacketComplete() OVERRIDE {} |
84 // The following methods should never get called because we always return | 83 // The following methods should never get called because we always return |
85 // false from OnPacketHeader(). We never need to process body of a packet. | 84 // false from OnPacketHeader(). We never need to process body of a packet. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // on sendmsg. | 171 // on sendmsg. |
173 bool is_write_blocked_; | 172 bool is_write_blocked_; |
174 | 173 |
175 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); | 174 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); |
176 }; | 175 }; |
177 | 176 |
178 } // namespace tools | 177 } // namespace tools |
179 } // namespace net | 178 } // namespace net |
180 | 179 |
181 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 180 #endif // NET_TOOLS_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
OLD | NEW |