OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #include "webrtc/base/physicalsocketserver.h" | 10 #include "webrtc/rtc_base/physicalsocketserver.h" |
11 | 11 |
12 #if defined(_MSC_VER) && _MSC_VER < 1300 | 12 #if defined(_MSC_VER) && _MSC_VER < 1300 |
13 #pragma warning(disable:4786) | 13 #pragma warning(disable:4786) |
14 #endif | 14 #endif |
15 | 15 |
16 #ifdef MEMORY_SANITIZER | 16 #ifdef MEMORY_SANITIZER |
17 #include <sanitizer/msan_interface.h> | 17 #include <sanitizer/msan_interface.h> |
18 #endif | 18 #endif |
19 | 19 |
20 #if defined(WEBRTC_POSIX) | 20 #if defined(WEBRTC_POSIX) |
(...skipping 15 matching lines...) Expand all Loading... |
36 #define WIN32_LEAN_AND_MEAN | 36 #define WIN32_LEAN_AND_MEAN |
37 #include <windows.h> | 37 #include <windows.h> |
38 #include <winsock2.h> | 38 #include <winsock2.h> |
39 #include <ws2tcpip.h> | 39 #include <ws2tcpip.h> |
40 #undef SetPort | 40 #undef SetPort |
41 #endif | 41 #endif |
42 | 42 |
43 #include <algorithm> | 43 #include <algorithm> |
44 #include <map> | 44 #include <map> |
45 | 45 |
46 #include "webrtc/base/arraysize.h" | 46 #include "webrtc/rtc_base/arraysize.h" |
47 #include "webrtc/base/basictypes.h" | 47 #include "webrtc/rtc_base/basictypes.h" |
48 #include "webrtc/base/byteorder.h" | 48 #include "webrtc/rtc_base/byteorder.h" |
49 #include "webrtc/base/checks.h" | 49 #include "webrtc/rtc_base/checks.h" |
50 #include "webrtc/base/logging.h" | 50 #include "webrtc/rtc_base/logging.h" |
51 #include "webrtc/base/networkmonitor.h" | 51 #include "webrtc/rtc_base/networkmonitor.h" |
52 #include "webrtc/base/nullsocketserver.h" | 52 #include "webrtc/rtc_base/nullsocketserver.h" |
53 #include "webrtc/base/timeutils.h" | 53 #include "webrtc/rtc_base/timeutils.h" |
54 #include "webrtc/base/win32socketinit.h" | 54 #include "webrtc/rtc_base/win32socketinit.h" |
55 | 55 |
56 #if defined(WEBRTC_POSIX) | 56 #if defined(WEBRTC_POSIX) |
57 #include <netinet/tcp.h> // for TCP_NODELAY | 57 #include <netinet/tcp.h> // for TCP_NODELAY |
58 #define IP_MTU 14 // Until this is integrated from linux/in.h to netinet/in.h | 58 #define IP_MTU 14 // Until this is integrated from linux/in.h to netinet/in.h |
59 typedef void* SockOptArg; | 59 typedef void* SockOptArg; |
60 | 60 |
61 #endif // WEBRTC_POSIX | 61 #endif // WEBRTC_POSIX |
62 | 62 |
63 #if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(__native_client__) | 63 #if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(__native_client__) |
64 | 64 |
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1987 break; | 1987 break; |
1988 } | 1988 } |
1989 } | 1989 } |
1990 | 1990 |
1991 // Done | 1991 // Done |
1992 return true; | 1992 return true; |
1993 } | 1993 } |
1994 #endif // WEBRTC_WIN | 1994 #endif // WEBRTC_WIN |
1995 | 1995 |
1996 } // namespace rtc | 1996 } // namespace rtc |
OLD | NEW |