| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_BASE_IP_ENDPOINT_H_ | 5 #ifndef NET_BASE_IP_ENDPOINT_H_ |
| 6 #define NET_BASE_IP_ENDPOINT_H_ | 6 #define NET_BASE_IP_ENDPOINT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "net/base/address_family.h" | 12 #include "net/base/address_family.h" |
| 13 #include "net/base/ip_address_number.h" |
| 13 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
| 14 #include "net/base/net_util.h" | 15 #include "net/base/sys_addrinfo.h" |
| 15 | 16 |
| 16 struct sockaddr; | 17 struct sockaddr; |
| 17 | 18 |
| 18 namespace net { | 19 namespace net { |
| 19 | 20 |
| 20 // An IPEndPoint represents the address of a transport endpoint: | 21 // An IPEndPoint represents the address of a transport endpoint: |
| 21 // * IP address (either v4 or v6) | 22 // * IP address (either v4 or v6) |
| 22 // * Port | 23 // * Port |
| 23 class NET_EXPORT IPEndPoint { | 24 class NET_EXPORT IPEndPoint { |
| 24 public: | 25 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 bool operator==(const IPEndPoint& that) const; | 65 bool operator==(const IPEndPoint& that) const; |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 IPAddressNumber address_; | 68 IPAddressNumber address_; |
| 68 uint16 port_; | 69 uint16 port_; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace net | 72 } // namespace net |
| 72 | 73 |
| 73 #endif // NET_BASE_IP_ENDPOINT_H_ | 74 #endif // NET_BASE_IP_ENDPOINT_H_ |
| OLD | NEW |