| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #ifndef RTC_BASE_NET_HELPERS_H_ |
| 12 | #define RTC_BASE_NET_HELPERS_H_ |
| 13 |
| 14 | #if defined(WEBRTC_POSIX) |
| 15 | #include <sys/socket.h> |
| 16 | #elif WEBRTC_WIN |
| 17 | #include <winsock2.h> // NOLINT |
| 18 |
| 19 | #include "rtc_base/win32.h" |
| 20 | #endif |
| 21 |
| 22 | #include "absl/strings/string_view.h" |
| 23 | #include "rtc_base/system/rtc_export.h" |
| 24 |
| 25 | namespace rtc { |
| 26 |
| 27 | // rtc namespaced wrappers for inet_ntop and inet_pton so we can avoid |
| 28 | // the windows-native versions of these. |
| 29 | const char* inet_ntop(int af, const void* src, char* dst, socklen_t size); |
| 30 | int inet_pton(int af, absl::string_view src, void* dst); |
| 31 |
| 32 | } // namespace rtc |
| 33 |
| 34 | #endif // RTC_BASE_NET_HELPERS_H_ |
| 35 |