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 #ifndef WEBRTC_RTC_BASE_SOCKETADDRESS_H_ | 11 #ifndef WEBRTC_RTC_BASE_SOCKETADDRESS_H_ |
12 #define WEBRTC_RTC_BASE_SOCKETADDRESS_H_ | 12 #define WEBRTC_RTC_BASE_SOCKETADDRESS_H_ |
13 | 13 |
14 #include <iosfwd> | |
15 #include <string> | 14 #include <string> |
16 #include <vector> | 15 #include <vector> |
17 #include "webrtc/rtc_base/basictypes.h" | 16 #include <iosfwd> |
18 #include "webrtc/rtc_base/ipaddress.h" | 17 #include "webrtc/base/basictypes.h" |
| 18 #include "webrtc/base/ipaddress.h" |
19 | 19 |
20 #undef SetPort | 20 #undef SetPort |
21 | 21 |
22 struct sockaddr_in; | 22 struct sockaddr_in; |
23 struct sockaddr_storage; | 23 struct sockaddr_storage; |
24 | 24 |
25 namespace rtc { | 25 namespace rtc { |
26 | 26 |
27 // Records an IP address and port. | 27 // Records an IP address and port. |
28 class SocketAddress { | 28 class SocketAddress { |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 bool literal_; // Indicates that 'hostname_' contains a literal IP string. | 188 bool literal_; // Indicates that 'hostname_' contains a literal IP string. |
189 }; | 189 }; |
190 | 190 |
191 bool SocketAddressFromSockAddrStorage(const sockaddr_storage& saddr, | 191 bool SocketAddressFromSockAddrStorage(const sockaddr_storage& saddr, |
192 SocketAddress* out); | 192 SocketAddress* out); |
193 SocketAddress EmptySocketAddressWithFamily(int family); | 193 SocketAddress EmptySocketAddressWithFamily(int family); |
194 | 194 |
195 } // namespace rtc | 195 } // namespace rtc |
196 | 196 |
197 #endif // WEBRTC_RTC_BASE_SOCKETADDRESS_H_ | 197 #endif // WEBRTC_RTC_BASE_SOCKETADDRESS_H_ |
OLD | NEW |