14 #include "jingleiceudp.h"
25 static const char* typeValues [] = {
33 : m_pwd( pwd ), m_ufrag( ufrag), m_candidates( candidates )
45 TagList::const_iterator it = candidates.begin();
46 for( ; it != candidates.end(); ++it )
49 c.
component = (*it)->findAttribute(
"component" );
50 c.
foundation = (*it)->findAttribute(
"foundation" );
51 c.
generation = (*it)->findAttribute(
"generation" );
52 c.
id = (*it)->findAttribute(
"id" );
53 c.
ip = (*it)->findAttribute(
"ip" );
54 c.
network = (*it)->findAttribute(
"network" );
55 c.
port = atoi( (*it)->findAttribute(
"port" ).c_str() );
56 c.
priority = atoi( (*it)->findAttribute(
"priority" ).c_str() );
57 c.
protocol = (*it)->findAttribute(
"protocol" );
58 c.
rel_addr = (*it)->findAttribute(
"rel-addr" );
59 c.
rel_port = atoi( (*it)->findAttribute(
"rel-port" ).c_str() );
60 c.
type = (
Type)util::lookup( (*it)->findAttribute(
"type" ), typeValues );
88 CandidateList::const_iterator it = m_candidates.begin();
89 for( ; it != m_candidates.end(); ++it )
91 Tag* c =
new Tag( t,
"candidate" );
103 c->
addAttribute(
"type", util::lookup( (*it).type, typeValues ) );