| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2008 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 | 10 |
| 11 #ifndef WEBRTC_RTC_BASE_NETHELPERS_H_ | 11 #ifndef WEBRTC_RTC_BASE_NETHELPERS_H_ |
| 12 #define WEBRTC_RTC_BASE_NETHELPERS_H_ | 12 #define WEBRTC_RTC_BASE_NETHELPERS_H_ |
| 13 | 13 |
| 14 #if defined(WEBRTC_POSIX) | 14 #if defined(WEBRTC_POSIX) |
| 15 #include <netdb.h> | 15 #include <netdb.h> |
| 16 #include <stddef.h> | 16 #include <stddef.h> |
| 17 #elif WEBRTC_WIN | 17 #elif WEBRTC_WIN |
| 18 #include <winsock2.h> // NOLINT | 18 #include <winsock2.h> // NOLINT |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 #include <list> | 21 #include <list> |
| 22 #include <memory> | 22 #include <memory> |
| 23 | 23 |
| 24 #include "webrtc/base/asyncresolverinterface.h" | 24 #include "webrtc/rtc_base/asyncresolverinterface.h" |
| 25 #include "webrtc/base/refcount.h" | 25 #include "webrtc/rtc_base/refcount.h" |
| 26 #include "webrtc/base/scoped_ref_ptr.h" | 26 #include "webrtc/rtc_base/scoped_ref_ptr.h" |
| 27 #include "webrtc/base/sigslot.h" | 27 #include "webrtc/rtc_base/sigslot.h" |
| 28 #include "webrtc/base/socketaddress.h" | 28 #include "webrtc/rtc_base/socketaddress.h" |
| 29 #include "webrtc/base/thread_checker.h" | 29 #include "webrtc/rtc_base/thread_checker.h" |
| 30 | 30 |
| 31 namespace rtc { | 31 namespace rtc { |
| 32 | 32 |
| 33 class Thread; | 33 class Thread; |
| 34 class TaskQueue; | 34 class TaskQueue; |
| 35 | 35 |
| 36 // AsyncResolver will perform async DNS resolution, signaling the result on the | 36 // AsyncResolver will perform async DNS resolution, signaling the result on the |
| 37 // SignalDone from AsyncResolverInterface when the operation completes. | 37 // SignalDone from AsyncResolverInterface when the operation completes. |
| 38 // SignalDone is fired on the same thread on which the AsyncResolver was | 38 // SignalDone is fired on the same thread on which the AsyncResolver was |
| 39 // constructed. | 39 // constructed. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // rtc namespaced wrappers for inet_ntop and inet_pton so we can avoid | 81 // rtc namespaced wrappers for inet_ntop and inet_pton so we can avoid |
| 82 // the windows-native versions of these. | 82 // the windows-native versions of these. |
| 83 const char* inet_ntop(int af, const void *src, char* dst, socklen_t size); | 83 const char* inet_ntop(int af, const void *src, char* dst, socklen_t size); |
| 84 int inet_pton(int af, const char* src, void *dst); | 84 int inet_pton(int af, const char* src, void *dst); |
| 85 | 85 |
| 86 bool HasIPv4Enabled(); | 86 bool HasIPv4Enabled(); |
| 87 bool HasIPv6Enabled(); | 87 bool HasIPv6Enabled(); |
| 88 } // namespace rtc | 88 } // namespace rtc |
| 89 | 89 |
| 90 #endif // WEBRTC_RTC_BASE_NETHELPERS_H_ | 90 #endif // WEBRTC_RTC_BASE_NETHELPERS_H_ |
| OLD | NEW |