webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | Friends | List of all members
rtc::Network Class Reference

#include <network.h>

Public Member Functions

 Network (const std::string &name, const std::string &description, const IPAddress &prefix, int prefix_length)
 
 Network (const std::string &name, const std::string &description, const IPAddress &prefix, int prefix_length, AdapterType type)
 
 ~Network ()
 
const DefaultLocalAddressProviderdefault_local_address_provider ()
 
void set_default_local_address_provider (const DefaultLocalAddressProvider *provider)
 
const std::stringname () const
 
const std::stringdescription () const
 
const IPAddressprefix () const
 
int prefix_length () const
 
std::string key () const
 
IPAddress GetBestIP () const
 
IPAddress ip () const
 
void AddIP (const InterfaceAddress &ip)
 
bool SetIPs (const std::vector< InterfaceAddress > &ips, bool already_changed)
 
const std::vector< InterfaceAddress > & GetIPs () const
 
void ClearIPs ()
 
int scope_id () const
 
void set_scope_id (int id)
 
bool ignored () const
 
void set_ignored (bool ignored)
 
AdapterType type () const
 
void set_type (AdapterType type)
 
uint16_t GetCost () const
 
uint16_t id () const
 
void set_id (uint16_t id)
 
int preference () const
 
void set_preference (int preference)
 
bool active () const
 
void set_active (bool active)
 
std::string ToString () const
 
 Network (const std::string &name, const std::string &description, const IPAddress &prefix, int prefix_length)
 
 Network (const std::string &name, const std::string &description, const IPAddress &prefix, int prefix_length, AdapterType type)
 
 ~Network ()
 
const DefaultLocalAddressProviderdefault_local_address_provider ()
 
void set_default_local_address_provider (const DefaultLocalAddressProvider *provider)
 
const std::stringname () const
 
const std::stringdescription () const
 
const IPAddressprefix () const
 
int prefix_length () const
 
std::string key () const
 
IPAddress GetBestIP () const
 
IPAddress ip () const
 
void AddIP (const InterfaceAddress &ip)
 
bool SetIPs (const std::vector< InterfaceAddress > &ips, bool already_changed)
 
const std::vector< InterfaceAddress > & GetIPs () const
 
void ClearIPs ()
 
int scope_id () const
 
void set_scope_id (int id)
 
bool ignored () const
 
void set_ignored (bool ignored)
 
AdapterType type () const
 
void set_type (AdapterType type)
 
uint16_t GetCost () const
 
uint16_t id () const
 
void set_id (uint16_t id)
 
int preference () const
 
void set_preference (int preference)
 
bool active () const
 
void set_active (bool active)
 
std::string ToString () const
 

Public Attributes

sigslot::signal1< const Network * > SignalTypeChanged
 

Friends

class NetworkManager
 

Constructor & Destructor Documentation

◆ Network() [1/4]

rtc::Network::Network ( const std::string name,
const std::string description,
const IPAddress prefix,
int  prefix_length 
)

◆ Network() [2/4]

rtc::Network::Network ( const std::string name,
const std::string description,
const IPAddress prefix,
int  prefix_length,
AdapterType  type 
)

◆ ~Network() [1/2]

rtc::Network::~Network ( )
default

◆ Network() [3/4]

rtc::Network::Network ( const std::string name,
const std::string description,
const IPAddress prefix,
int  prefix_length 
)

◆ Network() [4/4]

rtc::Network::Network ( const std::string name,
const std::string description,
const IPAddress prefix,
int  prefix_length,
AdapterType  type 
)

◆ ~Network() [2/2]

rtc::Network::~Network ( )

Member Function Documentation

◆ active() [1/2]

bool rtc::Network::active ( ) const
inline

◆ active() [2/2]

bool rtc::Network::active ( ) const
inline

◆ AddIP() [1/2]

void rtc::Network::AddIP ( const InterfaceAddress ip)
inline

◆ AddIP() [2/2]

void rtc::Network::AddIP ( const InterfaceAddress ip)
inline

◆ ClearIPs() [1/2]

void rtc::Network::ClearIPs ( )
inline

◆ ClearIPs() [2/2]

void rtc::Network::ClearIPs ( )
inline

◆ default_local_address_provider() [1/2]

const DefaultLocalAddressProvider* rtc::Network::default_local_address_provider ( )
inline

◆ default_local_address_provider() [2/2]

const DefaultLocalAddressProvider* rtc::Network::default_local_address_provider ( )
inline

◆ description() [1/2]

const std::string& rtc::Network::description ( ) const
inline

◆ description() [2/2]

const std::string& rtc::Network::description ( ) const
inline

◆ GetBestIP() [1/2]

IPAddress rtc::Network::GetBestIP ( ) const

◆ GetBestIP() [2/2]

IPAddress rtc::Network::GetBestIP ( ) const

◆ GetCost() [1/2]

uint16_t rtc::Network::GetCost ( ) const
inline

◆ GetCost() [2/2]

uint16_t rtc::Network::GetCost ( ) const
inline

◆ GetIPs() [1/2]

const std::vector<InterfaceAddress>& rtc::Network::GetIPs ( ) const
inline

◆ GetIPs() [2/2]

const std::vector<InterfaceAddress>& rtc::Network::GetIPs ( ) const
inline

◆ id() [1/2]

uint16_t rtc::Network::id ( ) const
inline

◆ id() [2/2]

uint16_t rtc::Network::id ( ) const
inline

◆ ignored() [1/2]

bool rtc::Network::ignored ( ) const
inline

◆ ignored() [2/2]

bool rtc::Network::ignored ( ) const
inline

◆ ip() [1/2]

IPAddress rtc::Network::ip ( ) const
inline

◆ ip() [2/2]

IPAddress rtc::Network::ip ( ) const
inline

◆ key() [1/2]

std::string rtc::Network::key ( ) const
inline

◆ key() [2/2]

std::string rtc::Network::key ( ) const
inline

◆ name() [1/2]

const std::string& rtc::Network::name ( ) const
inline

◆ name() [2/2]

const std::string& rtc::Network::name ( ) const
inline

◆ preference() [1/2]

int rtc::Network::preference ( ) const
inline

◆ preference() [2/2]

int rtc::Network::preference ( ) const
inline

◆ prefix() [1/2]

const IPAddress& rtc::Network::prefix ( ) const
inline

◆ prefix() [2/2]

const IPAddress& rtc::Network::prefix ( ) const
inline

◆ prefix_length() [1/2]

int rtc::Network::prefix_length ( ) const
inline

◆ prefix_length() [2/2]

int rtc::Network::prefix_length ( ) const
inline

◆ scope_id() [1/2]

int rtc::Network::scope_id ( ) const
inline

◆ scope_id() [2/2]

int rtc::Network::scope_id ( ) const
inline

◆ set_active() [1/2]

void rtc::Network::set_active ( bool  active)
inline

◆ set_active() [2/2]

void rtc::Network::set_active ( bool  active)
inline

◆ set_default_local_address_provider() [1/2]

void rtc::Network::set_default_local_address_provider ( const DefaultLocalAddressProvider provider)
inline

◆ set_default_local_address_provider() [2/2]

void rtc::Network::set_default_local_address_provider ( const DefaultLocalAddressProvider provider)
inline

◆ set_id() [1/2]

void rtc::Network::set_id ( uint16_t  id)
inline

◆ set_id() [2/2]

void rtc::Network::set_id ( uint16_t  id)
inline

◆ set_ignored() [1/2]

void rtc::Network::set_ignored ( bool  ignored)
inline

◆ set_ignored() [2/2]

void rtc::Network::set_ignored ( bool  ignored)
inline

◆ set_preference() [1/2]

void rtc::Network::set_preference ( int  preference)
inline

◆ set_preference() [2/2]

void rtc::Network::set_preference ( int  preference)
inline

◆ set_scope_id() [1/2]

void rtc::Network::set_scope_id ( int  id)
inline

◆ set_scope_id() [2/2]

void rtc::Network::set_scope_id ( int  id)
inline

◆ set_type() [1/2]

void rtc::Network::set_type ( AdapterType  type)
inline

◆ set_type() [2/2]

void rtc::Network::set_type ( AdapterType  type)
inline

◆ SetIPs() [1/2]

bool rtc::Network::SetIPs ( const std::vector< InterfaceAddress > &  ips,
bool  already_changed 
)

◆ SetIPs() [2/2]

bool rtc::Network::SetIPs ( const std::vector< InterfaceAddress > &  ips,
bool  already_changed 
)

◆ ToString() [1/2]

std::string rtc::Network::ToString ( ) const

◆ ToString() [2/2]

std::string rtc::Network::ToString ( ) const

◆ type() [1/2]

AdapterType rtc::Network::type ( ) const
inline

◆ type() [2/2]

AdapterType rtc::Network::type ( ) const
inline

Friends And Related Function Documentation

◆ NetworkManager

Member Data Documentation

◆ SignalTypeChanged

sigslot::signal1< const Network * > rtc::Network::SignalTypeChanged

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