Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Side by Side Diff: net/tools/quic/quic_server.h

Issue 965943002: Fixing a bug in the QUIC prober where if we received a GOAWAY before (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_dead_method_QuicUnackedPacketMap_RestoreInFlight_86690324
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // A toy server, which listens on a specified address for QUIC traffic and 5 // A toy server, which listens on a specified address for QUIC traffic and
6 // handles incoming responses. 6 // handles incoming responses.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_H_
9 #define NET_TOOLS_QUIC_QUIC_SERVER_H_ 9 #define NET_TOOLS_QUIC_QUIC_SERVER_H_
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 const QuicConfig& config() const { return config_; } 84 const QuicConfig& config() const { return config_; }
85 const QuicCryptoServerConfig& crypto_config() const { 85 const QuicCryptoServerConfig& crypto_config() const {
86 return crypto_config_; 86 return crypto_config_;
87 } 87 }
88 const QuicVersionVector& supported_versions() const { 88 const QuicVersionVector& supported_versions() const {
89 return supported_versions_; 89 return supported_versions_;
90 } 90 }
91 EpollServer* epoll_server() { return &epoll_server_; } 91 EpollServer* epoll_server() { return &epoll_server_; }
92 92
93 QuicDispatcher* dispatcher() { return dispatcher_.get(); }
94
93 private: 95 private:
94 friend class net::tools::test::QuicServerPeer; 96 friend class net::tools::test::QuicServerPeer;
95 97
96 // Initialize the internal state of the server. 98 // Initialize the internal state of the server.
97 void Initialize(); 99 void Initialize();
98 100
99 // Accepts data from the framer and demuxes clients to sessions. 101 // Accepts data from the framer and demuxes clients to sessions.
100 scoped_ptr<QuicDispatcher> dispatcher_; 102 scoped_ptr<QuicDispatcher> dispatcher_;
101 // Frames incoming packets and hands them to the dispatcher. 103 // Frames incoming packets and hands them to the dispatcher.
102 EpollServer epoll_server_; 104 EpollServer epoll_server_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // connections. 137 // connections.
136 uint32 server_initial_flow_control_receive_window_; 138 uint32 server_initial_flow_control_receive_window_;
137 139
138 DISALLOW_COPY_AND_ASSIGN(QuicServer); 140 DISALLOW_COPY_AND_ASSIGN(QuicServer);
139 }; 141 };
140 142
141 } // namespace tools 143 } // namespace tools
142 } // namespace net 144 } // namespace net
143 145
144 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_ 146 #endif // NET_TOOLS_QUIC_QUIC_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698