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

Unified Diff: net/base/ip_endpoint.h

Issue 6685013: Use IPEndPoint for P2P IPC messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 9 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
Index: net/base/ip_endpoint.h
diff --git a/net/base/ip_endpoint.h b/net/base/ip_endpoint.h
index af5de875557eac493f7a302f5a78d53a25ed1659..f76a82acc6cdaacc009ca8ec010df3f3d43df023 100644
--- a/net/base/ip_endpoint.h
+++ b/net/base/ip_endpoint.h
@@ -44,6 +44,11 @@ class IPEndPoint {
// Returns true on success, false on failure.
bool FromSockAddr(const struct sockaddr* address, size_t address_length);
+ // Returns value as a string (e.g. "127.0.0.1:80"). Returns empty
+ // string if the address is invalid, and cannot not be converted to a
+ // string.
+ std::string ToString() const;
+
bool operator<(const IPEndPoint& that) const;
bool operator==(const IPEndPoint& that) const;
« no previous file with comments | « content/content_common.gypi ('k') | net/base/ip_endpoint.cc » ('j') | net/base/ip_endpoint.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698