7 #include "ppapi/c/pp_bool.h"
15 template <>
const char* interface_name<PPB_NetAddress_1_0>() {
16 return PPB_NETADDRESS_INTERFACE_1_0;
29 const PP_NetAddress_IPv4& ipv4_addr) {
30 if (has_interface<PPB_NetAddress_1_0>()) {
32 get_interface<PPB_NetAddress_1_0>()->CreateFromIPv4Address(
38 const PP_NetAddress_IPv6& ipv6_addr) {
39 if (has_interface<PPB_NetAddress_1_0>()) {
41 get_interface<PPB_NetAddress_1_0>()->CreateFromIPv6Address(
59 return has_interface<PPB_NetAddress_1_0>();
63 if (has_interface<PPB_NetAddress_1_0>())
66 return PP_NETADDRESS_FAMILY_UNSPECIFIED;
70 if (has_interface<PPB_NetAddress_1_0>()) {
80 if (has_interface<PPB_NetAddress_1_0>()) {
90 if (has_interface<PPB_NetAddress_1_0>()) {
void PassRefFromConstructor(PP_Resource resource)
static bool IsAvailable()
virtual ~NetAddress()
The destructor.
NetAddress & operator=(const NetAddress &other)
bool DescribeAsIPv4Address(PP_NetAddress_IPv4 *ipv4_addr) const
The NetAddress class represents a network address.
PP_NetAddress_Family GetFamily() const
bool DescribeAsIPv6Address(PP_NetAddress_IPv6 *ipv6_addr) const
PP_Resource pp_resource() const
A generic type used for passing data types between the module and the page.
PP_Instance pp_instance() const
Var DescribeAsString(bool include_port) const
A reference counted module resource.
Resource & operator=(const Resource &other)