Lines Matching refs:desc
98 static bool VerifyIceParams(const TransportDescription& desc) {
100 if (desc.ice_ufrag.empty() && desc.ice_pwd.empty())
103 if (desc.ice_ufrag.length() < ICE_UFRAG_MIN_LENGTH ||
104 desc.ice_ufrag.length() > ICE_UFRAG_MAX_LENGTH) {
107 if (desc.ice_pwd.length() < ICE_PWD_MIN_LENGTH ||
108 desc.ice_pwd.length() > ICE_PWD_MAX_LENGTH) {
114 bool BadTransportDescription(const std::string& desc, std::string* err_desc) {
116 *err_desc = desc;
118 LOG(LS_ERROR) << desc;
346 TransportDescription desc(NS_GINGLE_P2P, std::vector<std::string>(),
351 SetLocalTransportDescription_w(desc, CA_OFFER, NULL);
737 const TransportDescription& desc,
743 if (!VerifyIceParams(desc)) {
748 if (local_description_ && IceCredentialsChanged(*local_description_, desc)) {
757 local_description_.reset(new TransportDescription(desc));
774 const TransportDescription& desc,
780 if (!VerifyIceParams(desc)) {
785 remote_description_.reset(new TransportDescription(desc));
863 std::ostringstream desc;
864 desc << "Offer and answer protocol mismatch: "
868 return BadTransportDescription(desc.str(), error_desc);
968 const TransportDescription* desc) {
969 ASSERT(desc != NULL);
970 if (desc->transport_type == NS_JINGLE_ICE_UDP) {
971 return (desc->HasOption(ICE_OPTION_GICE)) ?