43 m_pwd =
tag->findAttribute(
"pwd" );
44 m_ufrag =
tag->findAttribute(
"ufrag" );
46 TagList::const_iterator it =
candidates.begin();
50 c.component = (*it)->findAttribute(
"component" );
51 c.foundation = (*it)->findAttribute(
"foundation" );
52 c.generation = (*it)->findAttribute(
"generation" );
53 c.id = (*it)->findAttribute(
"id" );
54 c.ip = (*it)->findAttribute(
"ip" );
55 c.network = (*it)->findAttribute(
"network" );
56 c.port = atoi( (*it)->findAttribute(
"port" ).c_str() );
57 c.priority = atoi( (*it)->findAttribute(
"priority" ).c_str() );
58 c.protocol = (*it)->findAttribute(
"protocol" );
59 c.rel_addr = (*it)->findAttribute(
"rel-addr" );
60 c.rel_port = atoi( (*it)->findAttribute(
"rel-port" ).c_str() );
61 c.type = static_cast<Type>( util::lookup( (*it)->findAttribute(
"type" ), typeValues ) );
62 m_candidates.push_back( c );