Home | History | Annotate | Download | only in base

Lines Matching defs:candidate

32 #include "talk/p2p/base/candidate.h"
43 ChannelParams() : channel(NULL), candidate(NULL) {}
45 : name(name), channel(NULL), candidate(NULL) {}
49 channel(NULL), candidate(NULL) {}
50 explicit ChannelParams(cricket::Candidate* candidate) :
51 channel(NULL), candidate(candidate) {
52 name = candidate->name();
56 delete candidate;
62 cricket::Candidate* candidate;
259 bool Transport::VerifyCandidate(const Candidate& cand, ParseError* error) {
261 return BadParse("candidate has local IP address", error);
265 return BadParse("candidate has address of zero", error);
273 "candidate has port below 1024, but not 80 or 443", error);
276 "candidate has port of 80 or 443 with private IP address", error);
283 void Transport::OnRemoteCandidates(const std::vector<Candidate>& candidates) {
284 for (std::vector<Candidate>::const_iterator iter = candidates.begin();
291 void Transport::OnRemoteCandidate(const Candidate& candidate) {
294 if (!HasChannel(candidate.name())) {
295 LOG(LS_WARNING) << "Ignoring candidate for unknown channel "
296 << candidate.name();
300 // new candidate deleted when params is deleted
301 ChannelParams* params = new ChannelParams(new Candidate(candidate));
306 void Transport::OnRemoteCandidate_w(const Candidate& candidate) {
308 ChannelMap::iterator iter = channels_.find(candidate.name());
311 iter->second->OnCandidate(candidate);
367 const Candidate& candidate) {
370 ready_candidates_.push_back(candidate);
383 std::vector<Candidate> candidates;
389 // we do the deleting of Candidate* here to keep the new above and
426 OnRemoteCandidate_w(*(params->candidate));