Index: net/base/ip_endpoint.h |
diff --git a/net/base/ip_endpoint.h b/net/base/ip_endpoint.h |
index 5969b30bdd11f622c3767ab496b78082fd1e361f..1fc7e0420b8b2e495ddfc5498ffc84744a5bf872 100644 |
--- a/net/base/ip_endpoint.h |
+++ b/net/base/ip_endpoint.h |
@@ -9,6 +9,7 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "net/base/address_family.h" |
#include "net/base/net_export.h" |
#include "net/base/net_util.h" |
@@ -29,8 +30,11 @@ class NET_EXPORT IPEndPoint { |
const IPAddressNumber& address() const { return address_; } |
int port() const { return port_; } |
- // Returns AF_INET or AF_INET6 depending on the type of the address. |
- int GetFamily() const; |
+ // Returns AddressFamily of the address. |
+ AddressFamily GetFamily() const; |
+ |
+ // Returns the sockaddr family of the address, AF_INET or AF_INET6. |
+ int GetSockAddrFamily() const; |
// Convert to a provided sockaddr struct. |
// |address| is the sockaddr to copy into. Should be at least |