Lines Matching defs:candidate
16 #include "third_party/libjingle/source/talk/p2p/base/candidate.h"
36 std::string SerializeP2PCandidate(const cricket::Candidate& candidate) {
39 value.SetString("ip", candidate.address().ipaddr().ToString());
40 value.SetInteger("port", candidate.address().port());
41 value.SetString("type", candidate.type());
42 value.SetString("protocol", candidate.protocol());
43 value.SetString("username", candidate.username());
44 value.SetString("password", candidate.password());
45 value.SetDouble("preference", candidate.preference());
46 value.SetInteger("generation", candidate.generation());
54 cricket::Candidate* candidate) {
84 candidate->set_address(talk_base::SocketAddress(ip, port));
85 candidate->set_type(type);
86 candidate->set_protocol(protocol);
87 candidate->set_username(username);
88 candidate->set_password(password);
89 candidate->set_preference(static_cast<float>(preference));
90 candidate->set_generation(generation);