Home | History | Annotate | Download | only in base

Lines Matching refs:Network

32 #include "talk/base/network.h"
142 bool NetworkManager::GetNetworks(std::vector<Network*>* result) {
143 std::vector<Network*> list;
151 Network* network;
153 network = list[i];
155 network = iter->second;
156 network->set_ip(list[i]->ip());
157 network->set_gateway_ip(list[i]->gateway_ip());
161 networks_[network->name()] = network;
162 result->push_back(network);
168 std::vector<Network*> list;
172 const Network* network = list[i];
173 if (!network->ignored() || include_ignored) {
174 LOG(LS_INFO) << network->ToString() << ": " << network->description()
176 << SocketAddress::IPToString(network->gateway_ip())
177 << ((network->ignored()) ? ", Ignored" : "");
201 Network* network = new Network(name, "", 0, 0);
202 network->SetState(state);
203 networks_[name] = network;
236 std::vector<Network*>* networks) {
262 scoped_ptr<Network> network(
263 new Network(ptr->ifr_name, ptr->ifr_name, ip,
265 network->set_ignored(IsIgnoredNetwork(*network));
266 if (include_ignored || !network->ignored()) {
267 networks->push_back(network.release());
287 std::vector<Network*>* networks) {
310 // In non-debug builds, don't transmit the network name because of
322 scoped_ptr<Network> network(new Network(name, info->Description,
325 network->set_ignored(IsIgnoredNetwork(*network));
326 if (include_ignored || !network->ignored()) {
327 networks->push_back(network.release());
335 bool NetworkManager::IsIgnoredNetwork(const Network& network) {
339 if (strncmp(network.name().c_str(), "lo", 2) == 0 ||
340 strncmp(network.name().c_str(), "vmnet", 5) == 0) {
348 if (strstr(network.description().c_str(), "VMnet") != NULL) {
354 return (network.ip() < 0x01000000);
358 std::vector<Network*>* result) {
363 Network::Network(const std::string& name, const std::string& desc,
375 void Network::StartSession(NetworkSession* session) {
381 void Network::StopSession(NetworkSession* session) {
388 void Network::EstimateQuality() {
410 std::string Network::ToString() const {
412 // Print out the first space-terminated token of the network desc, plus
419 void Network::AddDataPoint(uint32 time, double quality) {
432 std::string Network::GetState() const {
445 void Network::SetState(const std::string& str) {