{{+bindTo:partials.standard_nacl_article}}

pp::NetworkList Class Reference

{{- dummy div to appease doxygen -}}
Inheritance diagram for pp::NetworkList:

List of all members.

Public Member Functions

 NetworkList ()
 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

Static Public Member Functions

static bool IsAvailable ()

Constructor & Destructor Documentation

pp::NetworkList::NetworkList ( PassRef  ,
PP_Resource  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.
static bool pp::NetworkList::IsAvailable ( ) [static]

Returns true if the required interface is available.


The documentation for this class was generated from the following file:
{{/partials.standard_nacl_article}}