8 #ifndef PPAPI_C_PPB_UDP_SOCKET_H_ 
    9 #define PPAPI_C_PPB_UDP_SOCKET_H_ 
   19 #define PPB_UDPSOCKET_INTERFACE_1_0 "PPB_UDPSocket;1.0" 
   20 #define PPB_UDPSOCKET_INTERFACE_1_1 "PPB_UDPSocket;1.1" 
   21 #define PPB_UDPSOCKET_INTERFACE_1_2 "PPB_UDPSocket;1.2" 
   22 #define PPB_UDPSOCKET_INTERFACE PPB_UDPSOCKET_INTERFACE_1_2 
void(* Close)(PP_Resource udp_socket)
int32_t(* Bind)(PP_Resource udp_socket, PP_Resource addr, struct PP_CompletionCallback callback)
int32_t(* RecvFrom)(PP_Resource udp_socket, char *buffer, int32_t num_bytes, PP_Resource *addr, struct PP_CompletionCallback callback)
void(* Close)(PP_Resource udp_socket)
int32_t(* SendTo)(PP_Resource udp_socket, const char *buffer, int32_t num_bytes, PP_Resource addr, struct PP_CompletionCallback callback)
int32_t(* SetOption)(PP_Resource udp_socket, PP_UDPSocket_Option name, struct PP_Var value, struct PP_CompletionCallback callback)
int32_t(* JoinGroup)(PP_Resource udp_socket, PP_Resource group, struct PP_CompletionCallback callback)
PP_Bool(* IsUDPSocket)(PP_Resource resource)
int32_t(* RecvFrom)(PP_Resource udp_socket, char *buffer, int32_t num_bytes, PP_Resource *addr, struct PP_CompletionCallback callback)
PP_Resource(* Create)(PP_Instance instance)
int32_t(* SendTo)(PP_Resource udp_socket, const char *buffer, int32_t num_bytes, PP_Resource addr, struct PP_CompletionCallback callback)
int32_t(* SendTo)(PP_Resource udp_socket, const char *buffer, int32_t num_bytes, PP_Resource addr, struct PP_CompletionCallback callback)
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_UDPSocket_Option, 4)
int32_t(* Bind)(PP_Resource udp_socket, PP_Resource addr, struct PP_CompletionCallback callback)
void(* Close)(PP_Resource udp_socket)
PP_Resource(* GetBoundAddress)(PP_Resource udp_socket)
PP_Bool(* IsUDPSocket)(PP_Resource resource)
PP_Bool(* IsUDPSocket)(PP_Resource resource)
int32_t(* SetOption)(PP_Resource udp_socket, PP_UDPSocket_Option name, struct PP_Var value, struct PP_CompletionCallback callback)
int32_t(* RecvFrom)(PP_Resource udp_socket, char *buffer, int32_t num_bytes, PP_Resource *addr, struct PP_CompletionCallback callback)
int32_t(* SetOption)(PP_Resource udp_socket, PP_UDPSocket_Option name, struct PP_Var value, struct PP_CompletionCallback callback)
int32_t(* Bind)(PP_Resource udp_socket, PP_Resource addr, struct PP_CompletionCallback callback)
PP_Resource(* Create)(PP_Instance instance)
PP_Resource(* GetBoundAddress)(PP_Resource udp_socket)
int32_t(* LeaveGroup)(PP_Resource udp_socket, PP_Resource group, struct PP_CompletionCallback callback)
PP_Resource(* GetBoundAddress)(PP_Resource udp_socket)
PP_Resource(* Create)(PP_Instance instance)