OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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_BASE_IPADDRESS_H_ | 11 #ifndef WEBRTC_RTC_BASE_IPADDRESS_H_ |
12 #define WEBRTC_BASE_IPADDRESS_H_ | 12 #define WEBRTC_RTC_BASE_IPADDRESS_H_ |
13 | 13 |
14 #if defined(WEBRTC_POSIX) | 14 #if defined(WEBRTC_POSIX) |
15 #include <netinet/in.h> | 15 #include <netinet/in.h> |
16 #include <sys/socket.h> | 16 #include <sys/socket.h> |
17 #include <arpa/inet.h> | 17 #include <arpa/inet.h> |
18 #include <netdb.h> | 18 #include <netdb.h> |
19 #endif | 19 #endif |
20 #if defined(WEBRTC_WIN) | 20 #if defined(WEBRTC_WIN) |
21 #include <winsock2.h> | 21 #include <winsock2.h> |
22 #include <ws2tcpip.h> | 22 #include <ws2tcpip.h> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 IPAddress GetLoopbackIP(int family); | 178 IPAddress GetLoopbackIP(int family); |
179 IPAddress GetAnyIP(int family); | 179 IPAddress GetAnyIP(int family); |
180 | 180 |
181 // Returns the number of contiguously set bits, counting from the MSB in network | 181 // Returns the number of contiguously set bits, counting from the MSB in network |
182 // byte order, in this IPAddress. Bits after the first 0 encountered are not | 182 // byte order, in this IPAddress. Bits after the first 0 encountered are not |
183 // counted. | 183 // counted. |
184 int CountIPMaskBits(IPAddress mask); | 184 int CountIPMaskBits(IPAddress mask); |
185 | 185 |
186 } // namespace rtc | 186 } // namespace rtc |
187 | 187 |
188 #endif // WEBRTC_BASE_IPADDRESS_H_ | 188 #endif // WEBRTC_RTC_BASE_IPADDRESS_H_ |
OLD | NEW |