Lines Matching refs:protocol
26 bool IsDtlsSctp(const std::string& protocol) { in IsDtlsSctp() argument
27 return protocol == kMediaProtocolDtlsSctp || in IsDtlsSctp()
28 protocol == kMediaProtocolUdpDtlsSctp || in IsDtlsSctp()
29 protocol == kMediaProtocolTcpDtlsSctp; in IsDtlsSctp()
32 bool IsPlainSctp(const std::string& protocol) { in IsPlainSctp() argument
33 return protocol == kMediaProtocolSctp; in IsPlainSctp()
36 bool IsRtpProtocol(const std::string& protocol) { in IsRtpProtocol() argument
37 if (protocol.empty()) { in IsRtpProtocol()
40 size_t pos = protocol.find(cricket::kMediaProtocolRtpPrefix); in IsRtpProtocol()
45 if (pos == 0 || !isalpha(protocol[pos - 1])) { in IsRtpProtocol()
51 bool IsSctpProtocol(const std::string& protocol) { in IsSctpProtocol() argument
52 return IsPlainSctp(protocol) || IsDtlsSctp(protocol); in IsSctpProtocol()