Home | History | Annotate | Download | only in protocol

Lines Matching full:candidate

49                     JingleMessage::NamedCandidate* candidate) {
50 DCHECK(element->Name() == QName(kP2PTransportNamespace, "candidate"));
78 candidate->name = name;
80 candidate->candidate.set_address(talk_base::SocketAddress(address, port));
81 candidate->candidate.set_type(type);
82 candidate->candidate.set_protocol(protocol);
83 candidate->candidate.set_username(username);
84 candidate->candidate.set_password(password);
85 candidate->candidate.set_preference(static_cast<float>(preference));
86 candidate->candidate.set_generation(generation);
91 XmlElement* FormatCandidate(const JingleMessage::NamedCandidate& candidate) {
93 new XmlElement(QName(kP2PTransportNamespace, "candidate"));
94 result->SetAttr(QName(kEmptyNamespace, "name"), candidate.name);
96 candidate.candidate.address().ipaddr().ToString());
98 base::IntToString(candidate.candidate.address().port()));
99 result->SetAttr(QName(kEmptyNamespace, "type"), candidate.candidate.type());
101 candidate.candidate.protocol());
103 candidate.candidate.username());
105 candidate.candidate.password());
107 base::DoubleToString(candidate.candidate.preference()));
109 base::IntToString(candidate.candidate.generation()));
120 const cricket::Candidate& candidate)
122 candidate(candidate) {
247 QName qn_candidate(kP2PTransportNamespace, "candidate");
252 NamedCandidate candidate;
253 if (!ParseCandidate(candidate_tag, &candidate)) {
257 candidates.push_back(candidate);