| 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;
|
|
|
|
|