Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_HostResolver_Private_0_1 Struct Reference

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_Private_Hint *hint, struct PP_CompletionCallback callback)
 
struct PP_Var(* GetCanonicalName )(PP_Resource host_resolver)
 
uint32_t(* GetSize )(PP_Resource host_resolver)
 
PP_Bool(* GetNetAddress )(PP_Resource host_resolver, uint32_t index, struct PP_NetAddress_Private *addr)
 

Member Data Documentation

PP_Resource(* PPB_HostResolver_Private_0_1::Create)(PP_Instance instance)

Allocates a Host Resolver resource.

struct PP_Var(* PPB_HostResolver_Private_0_1::GetCanonicalName)(PP_Resource host_resolver)

Returns canonical name of host.

PP_Bool(* PPB_HostResolver_Private_0_1::GetNetAddress)(PP_Resource host_resolver, uint32_t index, struct PP_NetAddress_Private *addr)

Stores in the |addr| |index|-th network address. |addr| can't be NULL. Returns PP_TRUE if success or PP_FALSE if the given resource is not a Host Resolver or |index| exceeds number of available addresses.

uint32_t(* PPB_HostResolver_Private_0_1::GetSize)(PP_Resource host_resolver)

Returns number of network addresses obtained after Resolve call.

PP_Bool(* PPB_HostResolver_Private_0_1::IsHostResolver)(PP_Resource resource)

Determines if a given resource is a Host Resolver.

int32_t(* PPB_HostResolver_Private_0_1::Resolve)(PP_Resource host_resolver, const char *host, uint16_t port, const struct PP_HostResolver_Private_Hint *hint, struct PP_CompletionCallback callback)

Creates a new request to Host Resolver. |callback| is invoked when request is processed and a list of network addresses is obtained. These addresses can be be used in Connect, Bind or Listen calls to connect to a given |host| and |port|.


The documentation for this struct was generated from the following file: