diff options
author | Chih-hung Hsieh <chh@google.com> | 2016-01-20 17:01:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-01-20 17:01:36 +0000 |
commit | 9a337512d97e37afc142dee4fd50a41b741a87d2 (patch) | |
tree | 28c4cf735dd5bd9cc8f1ccd06fff8a173b20d1cb /webrtc/base/socketaddress.h | |
parent | fe8b4a657979b49e1701bd92f6d5814a99e0b2be (diff) | |
parent | daef292e03c8d7d32e650495612f336c1830013a (diff) | |
download | webrtc-9a337512d97e37afc142dee4fd50a41b741a87d2.tar.gz |
Merge "Merge upstream SHA 04cb763"
Diffstat (limited to 'webrtc/base/socketaddress.h')
-rw-r--r-- | webrtc/base/socketaddress.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/webrtc/base/socketaddress.h b/webrtc/base/socketaddress.h index 1d975a1c0e..175d7a9d12 100644 --- a/webrtc/base/socketaddress.h +++ b/webrtc/base/socketaddress.h @@ -141,7 +141,6 @@ class SocketAddress { // Determines whether the hostname has been resolved to an IP. bool IsUnresolvedIP() const; - inline bool IsUnresolved() const { return IsUnresolvedIP(); } // deprecated // Determines whether this address is identical to the given one. bool operator ==(const SocketAddress& addr) const; @@ -177,16 +176,6 @@ class SocketAddress { size_t ToDualStackSockAddrStorage(sockaddr_storage* saddr) const; size_t ToSockAddrStorage(sockaddr_storage* saddr) const; - // Converts the IP address given in dotted form into compact form. - // Only dotted names (A.B.C.D) are converted. - // Output integer is returned in host byte order. - // TODO: Deprecate, replace wth agnostic versions. - static bool StringToIP(const std::string& str, uint32_t* ip); - static uint32_t StringToIP(const std::string& str); - - // Converts the IP address given in printable form into an IPAddress. - static bool StringToIP(const std::string& str, IPAddress* ip); - private: std::string hostname_; IPAddress ip_; |