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

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

Issue 2548213002: Move quic_socket_utils to platform/impl/ (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « net/tools/quic/quic_packet_reader.h ('k') | net/tools/quic/quic_server.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_packet_reader.h" 5 #include "net/tools/quic/quic_packet_reader.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #ifndef __APPLE__ 8 #ifndef __APPLE__
9 // This is a GNU header that is not present in /usr/include on MacOS 9 // This is a GNU header that is not present in /usr/include on MacOS
10 #include <features.h> 10 #include <features.h>
11 #endif 11 #endif
12 #include <string.h> 12 #include <string.h>
13 #include <sys/epoll.h> 13 #include <sys/epoll.h>
14 14
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "net/quic/core/quic_bug_tracker.h" 16 #include "net/quic/core/quic_bug_tracker.h"
17 #include "net/quic/core/quic_flags.h" 17 #include "net/quic/core/quic_flags.h"
18 #include "net/quic/platform/api/quic_socket_address.h" 18 #include "net/quic/platform/api/quic_socket_address.h"
19 #include "net/tools/quic/platform/impl/quic_socket_utils.h"
19 #include "net/tools/quic/quic_dispatcher.h" 20 #include "net/tools/quic/quic_dispatcher.h"
20 #include "net/tools/quic/quic_process_packet_interface.h" 21 #include "net/tools/quic/quic_process_packet_interface.h"
21 #include "net/tools/quic/quic_socket_utils.h"
22 22
23 #define MMSG_MORE 0 23 #define MMSG_MORE 0
24 24
25 #ifndef SO_RXQ_OVFL 25 #ifndef SO_RXQ_OVFL
26 #define SO_RXQ_OVFL 40 26 #define SO_RXQ_OVFL 40
27 #endif 27 #endif
28 28
29 namespace net { 29 namespace net {
30 30
31 31
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 QuicSocketAddress server_address(server_ip, port); 187 QuicSocketAddress server_address(server_ip, port);
188 processor->ProcessPacket(server_address, client_address, packet); 188 processor->ProcessPacket(server_address, client_address, packet);
189 189
190 // The socket read was successful, so return true even if packet dispatch 190 // The socket read was successful, so return true even if packet dispatch
191 // failed. 191 // failed.
192 return true; 192 return true;
193 } 193 }
194 194
195 195
196 } // namespace net 196 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_packet_reader.h ('k') | net/tools/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698