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

Unified Diff: net/base/net_util.h

Issue 22861033: Move server socket functionality from TCPServerSocket into TCPSocket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months 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 | « no previous file | net/base/net_util.cc » ('j') | net/socket/tcp_socket.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 0b8dfc3981cd0f1c4a4ebb611d409ada7e7393bf..ecd7400cfa16e516a1d986ea76a807db5faa07a5 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -438,6 +438,9 @@ bool HaveOnlyLoopbackAddresses();
NET_EXPORT_PRIVATE AddressFamily GetAddressFamily(
const IPAddressNumber& address);
+// Maps the given AddressFamily to either AF_INET, AF_INET6 or AF_UNSPEC.
+int ConvertAddressFamily(AddressFamily address_family);
+
// Parses an IP address literal (either IPv4 or IPv6) to its numeric value.
// Returns true on success and fills |ip_number| with the numeric value.
NET_EXPORT_PRIVATE bool ParseIPLiteralToNumber(const std::string& ip_literal,
« no previous file with comments | « no previous file | net/base/net_util.cc » ('j') | net/socket/tcp_socket.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698