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

Public Attributes

PP_Resource(* Create )(PP_Instance instance_id)
 
PP_Bool(* IsUDPSocket )(PP_Resource resource_id)
 
int32_t(* SetSocketFeature )(PP_Resource udp_socket, PP_UDPSocketFeature_Private name, struct PP_Var value)
 
int32_t(* Bind )(PP_Resource udp_socket, const struct PP_NetAddress_Private *addr, struct PP_CompletionCallback callback)
 
PP_Bool(* GetBoundAddress )(PP_Resource udp_socket, struct PP_NetAddress_Private *addr)
 
int32_t(* RecvFrom )(PP_Resource udp_socket, char *buffer, int32_t num_bytes, struct PP_CompletionCallback callback)
 
PP_Bool(* GetRecvFromAddress )(PP_Resource udp_socket, struct PP_NetAddress_Private *addr)
 
int32_t(* SendTo )(PP_Resource udp_socket, const char *buffer, int32_t num_bytes, const struct PP_NetAddress_Private *addr, struct PP_CompletionCallback callback)
 
void(* Close )(PP_Resource udp_socket)
 

Member Data Documentation

PP_Resource(* PPB_UDPSocket_Private_0_4::Create)(PP_Instance instance_id)

Creates a UDP socket resource.

PP_Bool(* PPB_UDPSocket_Private_0_4::IsUDPSocket)(PP_Resource resource_id)

Determines if a given resource is a UDP socket.

int32_t(* PPB_UDPSocket_Private_0_4::SetSocketFeature)(PP_Resource udp_socket, PP_UDPSocketFeature_Private name, struct PP_Var value)

Sets a socket feature to |udp_socket|. Should be called before Bind(). Possible values for |name|, |value| and |value|'s type are described in PP_UDPSocketFeature_Private description. If no error occurs, returns PP_OK. Otherwise, returns PP_ERROR_BADRESOURCE (if bad |udp_socket| provided), PP_ERROR_BADARGUMENT (if bad name/value/value's type provided) or PP_ERROR_FAILED in the case of internal errors.


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