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

Side by Side Diff: net/socket/udp_socket.h

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month 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/socket/udp_server_socket.cc ('k') | net/socket/udp_socket_perftest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_UDP_UDP_SOCKET_H_ 5 #ifndef NET_SOCKET_UDP_SOCKET_H_
6 #define NET_UDP_UDP_SOCKET_H_ 6 #define NET_SOCKET_UDP_SOCKET_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include "net/udp/udp_socket_win.h" 11 #include "net/socket/udp_socket_win.h"
12 #elif defined(OS_POSIX) 12 #elif defined(OS_POSIX)
13 #include "net/udp/udp_socket_posix.h" 13 #include "net/socket/udp_socket_posix.h"
14 #endif 14 #endif
15 15
16 namespace net { 16 namespace net {
17 17
18 // UDPSocket 18 // UDPSocket
19 // Accessor API for a UDP socket in either client or server form. 19 // Accessor API for a UDP socket in either client or server form.
20 // 20 //
21 // Client form: 21 // Client form:
22 // In this case, we're connecting to a specific server, so the client will 22 // In this case, we're connecting to a specific server, so the client will
23 // usually use: 23 // usually use:
(...skipping 12 matching lines...) Expand all
36 // // Writes need to be directed to a specific 36 // // Writes need to be directed to a specific
37 // // address. 37 // // address.
38 #if defined(OS_WIN) 38 #if defined(OS_WIN)
39 typedef UDPSocketWin UDPSocket; 39 typedef UDPSocketWin UDPSocket;
40 #elif defined(OS_POSIX) 40 #elif defined(OS_POSIX)
41 typedef UDPSocketPosix UDPSocket; 41 typedef UDPSocketPosix UDPSocket;
42 #endif 42 #endif
43 43
44 } // namespace net 44 } // namespace net
45 45
46 #endif // NET_UDP_UDP_SOCKET_H_ 46 #endif // NET_SOCKET_UDP_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/udp_server_socket.cc ('k') | net/socket/udp_socket_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698