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

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

Issue 366863002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 client, which connects to a specified port and sends QUIC 5 // A toy client, which connects to a specified port and sends QUIC
6 // request to that endpoint. 6 // request to that endpoint.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_H_
9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_ 9 #define NET_TOOLS_QUIC_QUIC_CLIENT_H_
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual QuicConnectionId GenerateConnectionId(); 176 virtual QuicConnectionId GenerateConnectionId();
177 virtual QuicEpollConnectionHelper* CreateQuicConnectionHelper(); 177 virtual QuicEpollConnectionHelper* CreateQuicConnectionHelper();
178 virtual QuicPacketWriter* CreateQuicPacketWriter(); 178 virtual QuicPacketWriter* CreateQuicPacketWriter();
179 179
180 virtual int ReadPacket(char* buffer, 180 virtual int ReadPacket(char* buffer,
181 int buffer_len, 181 int buffer_len,
182 IPEndPoint* server_address, 182 IPEndPoint* server_address,
183 IPAddressNumber* client_ip); 183 IPAddressNumber* client_ip);
184 184
185 EpollServer* epoll_server() { return epoll_server_; } 185 EpollServer* epoll_server() { return epoll_server_; }
186 QuicConfig* config() { return &config_; }
186 187
187 private: 188 private:
188 friend class net::tools::test::QuicClientPeer; 189 friend class net::tools::test::QuicClientPeer;
189 190
190 // Used during initialization: creates the UDP socket FD, sets socket options, 191 // Used during initialization: creates the UDP socket FD, sets socket options,
191 // and binds the socket to our address. 192 // and binds the socket to our address.
192 bool CreateUDPSocket(); 193 bool CreateUDPSocket();
193 194
194 // Read a UDP packet and hand it to the framer. 195 // Read a UDP packet and hand it to the framer.
195 bool ReadAndProcessPacket(); 196 bool ReadAndProcessPacket();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // when the stream is closed (in OnClose). 253 // when the stream is closed (in OnClose).
253 bool print_response_; 254 bool print_response_;
254 255
255 DISALLOW_COPY_AND_ASSIGN(QuicClient); 256 DISALLOW_COPY_AND_ASSIGN(QuicClient);
256 }; 257 };
257 258
258 } // namespace tools 259 } // namespace tools
259 } // namespace net 260 } // namespace net
260 261
261 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_ 262 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698