Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: net/base/ip_endpoint.h

Issue 11528012: [net] Make IPEndPoint::GetFamily() return AddressFamily and add GetSockAddrFamily() to be used when… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update uses of GetFamily in net/dns/ Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/address_list_unittest.cc ('k') | net/base/ip_endpoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « net/base/address_list_unittest.cc ('k') | net/base/ip_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698