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

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

Issue 13741012: Moving net/tools/quic code to net::tools namspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/tools/quic/quic_client.h" 5 #include "net/tools/quic/quic_client.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <netinet/in.h> 8 #include <netinet/in.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/epoll.h> 10 #include <sys/epoll.h>
11 #include <sys/socket.h> 11 #include <sys/socket.h>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "net/quic/crypto/quic_random.h" 14 #include "net/quic/crypto/quic_random.h"
15 #include "net/quic/quic_connection.h" 15 #include "net/quic/quic_connection.h"
16 #include "net/quic/quic_data_reader.h" 16 #include "net/quic/quic_data_reader.h"
17 #include "net/quic/quic_protocol.h" 17 #include "net/quic/quic_protocol.h"
18 #include "net/tools/flip_server/balsa_headers.h" 18 #include "net/tools/flip_server/balsa_headers.h"
19 #include "net/tools/quic/quic_epoll_connection_helper.h" 19 #include "net/tools/quic/quic_epoll_connection_helper.h"
20 #include "net/tools/quic/quic_reliable_client_stream.h" 20 #include "net/tools/quic/quic_reliable_client_stream.h"
21 #include "net/tools/quic/quic_socket_utils.h" 21 #include "net/tools/quic/quic_socket_utils.h"
22 22
23 #ifndef SO_RXQ_OVFL 23 #ifndef SO_RXQ_OVFL
24 #define SO_RXQ_OVFL 40 24 #define SO_RXQ_OVFL 40
25 #endif 25 #endif
26 26
27 namespace net { 27 namespace net {
28 namespace tools {
28 29
29 const int kEpollFlags = EPOLLIN | EPOLLOUT | EPOLLET; 30 const int kEpollFlags = EPOLLIN | EPOLLOUT | EPOLLET;
30 31
31 QuicClient::QuicClient(IPEndPoint server_address, 32 QuicClient::QuicClient(IPEndPoint server_address,
32 const string& server_hostname) 33 const string& server_hostname)
33 : server_address_(server_address), 34 : server_address_(server_address),
34 server_hostname_(server_hostname), 35 server_hostname_(server_hostname),
35 local_port_(0), 36 local_port_(0),
36 fd_(-1), 37 fd_(-1),
37 initialized_(false), 38 initialized_(false),
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 << packet_guid << " instead of " << our_guid; 237 << packet_guid << " instead of " << our_guid;
237 return true; 238 return true;
238 } 239 }
239 240
240 IPEndPoint client_address(client_ip, client_address_.port()); 241 IPEndPoint client_address(client_ip, client_address_.port());
241 session_->connection()->ProcessUdpPacket( 242 session_->connection()->ProcessUdpPacket(
242 client_address, server_address, packet); 243 client_address, server_address, packet);
243 return true; 244 return true;
244 } 245 }
245 246
247 } // namespace tools
246 } // namespace net 248 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698