| Pepper_31_C_interfaces
    | 
#include <ppb_host_resolver.h>

| Public Attributes | |
| PP_Resource(* | Create )(PP_Instance instance) | 
| PP_Bool(* | IsHostResolver )(PP_Resource resource) | 
| int32_t(* | Resolve )(PP_Resource host_resolver, const char *host, uint16_t port, const struct PP_HostResolver_Hint *hint, struct PP_CompletionCallback callback) | 
| struct PP_Var(* | GetCanonicalName )(PP_Resource host_resolver) | 
| uint32_t(* | GetNetAddressCount )(PP_Resource host_resolver) | 
| PP_Resource(* | GetNetAddress )(PP_Resource host_resolver, uint32_t index) | 
The PPB_HostResolver interface 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 
Definition at line 85 of file ppb_host_resolver.h.
| PP_Resource(* PPB_HostResolver_1_0::Create)(PP_Instance instance) | 
Creates a host resolver resource.
| [in] | instance | A PP_Instanceidentifying one instance of a module. | 
PP_Resource corresponding to a host reslover or 0 on failure. Definition at line 95 of file ppb_host_resolver.h.
| struct PP_Var(* PPB_HostResolver_1_0::GetCanonicalName)(PP_Resource host_resolver) | 
Gets the canonical name of the host.
| [in] | host_resolver | A PP_Resourcecorresponding to a host resolver. | 
PP_Var on success, which is an empty string if PP_HOSTRESOLVER_FLAG_CANONNAME is not set in the hint flags when calling Resolve(); an undefined PP_Var if there is a pending Resolve() call or the previous Resolve() call failed. Definition at line 142 of file ppb_host_resolver.h.
| PP_Resource(* PPB_HostResolver_1_0::GetNetAddress)(PP_Resource host_resolver, uint32_t index) | 
Gets a network address.
| [in] | host_resolver | A PP_Resourcecorresponding to a host resolver. | 
| [in] | index | An index indicating which address to return. | 
PPB_NetAddress resource on success; 0 if there is a pending Resolve() call or the previous Resolve() call failed, or the specified index is out of range. Definition at line 165 of file ppb_host_resolver.h.
| uint32_t(* PPB_HostResolver_1_0::GetNetAddressCount)(PP_Resource host_resolver) | 
Gets the number of network addresses.
| [in] | host_resolver | A PP_Resourcecorresponding to a host resolver. | 
Resolve() call or the previous Resolve() call failed. Definition at line 153 of file ppb_host_resolver.h.
| PP_Bool(* PPB_HostResolver_1_0::IsHostResolver)(PP_Resource resource) | 
Determines if a given resource is a host resolver.
| [in] | resource | A PP_Resourceto check. | 
PP_TRUE if the input is a PPB_HostResolver resource; PP_FALSE otherwise. Definition at line 104 of file ppb_host_resolver.h.
| int32_t(* PPB_HostResolver_1_0::Resolve)(PP_Resource host_resolver, const char *host, uint16_t port, const struct PP_HostResolver_Hint *hint, struct PP_CompletionCallback callback) | 
Requests resolution of a host name. If the call completes successfully, the results can be retrieved by GetCanonicalName(), GetNetAddressCount() and GetNetAddress().
| [in] | host_resolver | A PP_Resourcecorresponding to a host resolver. | 
| [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 PP_CompletionCallbackto be called upon completion. | 
pp_errors.h. PP_ERROR_NOACCESS will be returned if the caller doesn't have required permissions. PP_ERROR_NAME_NOT_RESOLVED will be returned if the host name couldn't be resolved. Definition at line 125 of file ppb_host_resolver.h.
 1.8.6
 1.8.6