diff --git a/rtc_base/asyncresolverinterface.h b/rtc_base/asyncresolverinterface.h index 5b2303f4d8..f3df884249 100644 --- a/rtc_base/asyncresolverinterface.h +++ b/rtc_base/asyncresolverinterface.h @@ -22,9 +22,12 @@ class AsyncResolverInterface { AsyncResolverInterface(); virtual ~AsyncResolverInterface(); - // Start address resolve process. + // Start address resolution of the hostname in |addr|. virtual void Start(const SocketAddress& addr) = 0; - // Returns top most resolved address of |family| + // Returns true iff the address from |Start| was successfully resolved. + // If the address was successfully resolved, sets |addr| to a copy of the + // address from |Start| with the IP address set to the top most resolved + // address of |family| (|addr| will have both hostname and the resolved ip). virtual bool GetResolvedAddress(int family, SocketAddress* addr) const = 0; // Returns error from resolver. virtual int GetError() const = 0;