DomainNameResolverclass represents an in-progress domain name resolution.
class DomainNameResolver : public ListElement<DomainNameResolver>, public Completable<DomainNameResolver>
||Returns the result code of a domain name resolution.|
||Returns the IP address found by a domain name resolution.|
||Cancels an in-progress domain name resolution.|
The constructor has private access. All instances of
DomainNameResolverare created by the Network Manager.
DomainNameResolverobject represents a pending request for a domain name resolution. A domain name resolution is initiated by calling the
NetworkMgr::ResolveAddressfunction, which returns a pointer to a newly created
DomainNameResolverobject. When the domain name is resolved, the completion callback is called and is passed an instance of the
DomainNameResolverclass. A subsequent call to the
DomainNameResolver::GetAddressfunction retrieves the IP address corresponding to the domain name.
||Used internally by the Network Manager.|
||The completion callback is invoked when the domain name has been resolved.|