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 | 10 |
11 #include "webrtc/rtc_base/win32.h" | 11 #include "webrtc/base/win32.h" |
12 | 12 |
13 #include <winsock2.h> | 13 #include <winsock2.h> |
14 #include <ws2tcpip.h> | 14 #include <ws2tcpip.h> |
15 #include <algorithm> | 15 #include <algorithm> |
16 | 16 |
17 #include "webrtc/rtc_base/arraysize.h" | 17 #include "webrtc/base/arraysize.h" |
18 #include "webrtc/rtc_base/basictypes.h" | 18 #include "webrtc/base/basictypes.h" |
19 #include "webrtc/rtc_base/byteorder.h" | 19 #include "webrtc/base/byteorder.h" |
20 #include "webrtc/rtc_base/checks.h" | 20 #include "webrtc/base/checks.h" |
21 #include "webrtc/rtc_base/logging.h" | 21 #include "webrtc/base/logging.h" |
22 | 22 |
23 namespace rtc { | 23 namespace rtc { |
24 | 24 |
25 // Helper function declarations for inet_ntop/inet_pton. | 25 // Helper function declarations for inet_ntop/inet_pton. |
26 static const char* inet_ntop_v4(const void* src, char* dst, socklen_t size); | 26 static const char* inet_ntop_v4(const void* src, char* dst, socklen_t size); |
27 static const char* inet_ntop_v6(const void* src, char* dst, socklen_t size); | 27 static const char* inet_ntop_v6(const void* src, char* dst, socklen_t size); |
28 static int inet_pton_v4(const char* src, void* dst); | 28 static int inet_pton_v4(const char* src, void* dst); |
29 static int inet_pton_v6(const char* src, void* dst); | 29 static int inet_pton_v6(const char* src, void* dst); |
30 | 30 |
31 // Implementation of inet_ntop (create a printable representation of an | 31 // Implementation of inet_ntop (create a printable representation of an |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 *level = *GetSidSubAuthority(til->Label.Sid, count - 1); | 452 *level = *GetSidSubAuthority(til->Label.Sid, count - 1); |
453 ret = true; | 453 ret = true; |
454 } | 454 } |
455 } | 455 } |
456 CloseHandle(token); | 456 CloseHandle(token); |
457 } | 457 } |
458 return ret; | 458 return ret; |
459 } | 459 } |
460 | 460 |
461 } // namespace rtc | 461 } // namespace rtc |
OLD | NEW |