Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::NetworkList Class Reference
Inheritance diagram for pp::NetworkList:
pp::Resource

Public Member Functions

 NetworkList (PassRef, PP_Resource resource)
 
uint32_t GetCount () const
 
std::string GetName (uint32_t index) const
 
PP_NetworkList_Type GetType (uint32_t index) const
 
PP_NetworkList_State GetState (uint32_t index) const
 
int32_t GetIpAddresses (uint32_t index, std::vector< NetAddress > *addresses) const
 
std::string GetDisplayName (uint32_t index) const
 
uint32_t GetMTU (uint32_t index) const
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor.
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor.
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Static Public Member Functions

static bool IsAvailable ()
 Returns true if the required interface is available.
 

Additional Inherited Members

- Protected Member Functions inherited from pp::Resource
 Resource (PP_Resource resource)
 
 Resource (PassRef, PP_Resource resource)
 
void PassRefFromConstructor (PP_Resource resource)
 
void Clear ()
 Sets this resource to null. This releases ownership of the resource.
 

Member Function Documentation

uint32_t pp::NetworkList::GetCount ( ) const
Returns
Returns the number of available network interfaces or 0 if the list has never been updated.
std::string pp::NetworkList::GetDisplayName ( uint32_t  index) const
Returns
Returns the display name for the network interface with the specified index.
int32_t pp::NetworkList::GetIpAddresses ( uint32_t  index,
std::vector< NetAddress > *  addresses 
) const

Gets the list of IP addresses for the network interface with the specified index and stores them in addresses.

uint32_t pp::NetworkList::GetMTU ( uint32_t  index) const
Returns
Returns the MTU for the network interface with the specified index.
std::string pp::NetworkList::GetName ( uint32_t  index) const
Returns
Returns the name for the network interface with the specified index.
PP_NetworkList_State pp::NetworkList::GetState ( uint32_t  index) const
Returns
Returns the current state of the network interface with the specified index.
PP_NetworkList_Type pp::NetworkList::GetType ( uint32_t  index) const
Returns
Returns the type of the network interface with the specified index.

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