Public Member Functions
|HostResolver (const InstanceHandle &instance)|
|HostResolver (PassRef, PP_Resource resource)|
|HostResolver (const HostResolver &other)|
|HostResolver &||operator= (const HostResolver &other)|
|int32_t||Resolve (const char *host, uint16_t port, const PP_HostResolver_Hint &hint, const CompletionCallback &callback)|
|Var||GetCanonicalName () const|
|uint32_t||GetNetAddressCount () const|
|NetAddress||GetNetAddress (uint32_t index) const|
Static Public Member Functions
|static bool||IsAvailable ()|
HostResolver class supports host name resolution.
Permissions: In order to run
Resolve(), apps permission
socket with subrule
resolve-host is required. For more details about network communication permissions, please see: http://developer.chrome.com/apps/app_network.html
Constructor & Destructor Documentation
A constructor used to create a
[in] instance The instance with which this resource will be associated.
A constructor used when you have received a
PP_Resource as a return value that has had 1 ref added for you.
[in] resource A
Member Function Documentation
|static bool pp::HostResolver::IsAvailable||(||)|
Static function for determining whether the browser supports the
- true if the interface is available, false otherwise.
Requests resolution of a host name.
[in] host The host name (or IP address literal) to resolve. [in] port The port number to be set in the resulting network addresses. [in] hint A
PP_HostResolver_Hintstructure providing hints for host resolution.
[in] callback A
CompletionCallbackto be called upon completion.
- An int32_t containing an error code from
PP_ERROR_NOACCESSwill be returned if the caller doesn't have required permissions.
PP_ERROR_NAME_NOT_RESOLVEDwill be returned if the host name couldn't be resolved.
The documentation for this class was generated from the following file: