5 #ifndef PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_
8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/private/ppb_udp_socket_private.h"
10 #include "ppapi/cpp/resource.h"
14 class CompletionCallback;
26 int32_t
Bind(
const PP_NetAddress_Private* addr,
33 int32_t
SendTo(
const char* buffer,
35 const PP_NetAddress_Private* addr,
42 #endif // PPAPI_CPP_PRIVATE_UDP_SOCKET_PRIVATE_H_
bool GetRecvFromAddress(PP_NetAddress_Private *addr)
int32_t Bind(const PP_NetAddress_Private *addr, const CompletionCallback &callback)
int32_t RecvFrom(char *buffer, int32_t num_bytes, const CompletionCallback &callback)
UDPSocketPrivate(const InstanceHandle &instance)
bool GetBoundAddress(PP_NetAddress_Private *addr)
int32_t SendTo(const char *buffer, int32_t num_bytes, const PP_NetAddress_Private *addr, const CompletionCallback &callback)
static bool IsAvailable()
int32_t SetSocketFeature(PP_UDPSocketFeature_Private name, const Var &value)
A generic type used for passing data types between the module and the page.
A reference counted module resource.