media_protocol_names.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2019 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef PC_MEDIA_PROTOCOL_NAMES_H_
  11. #define PC_MEDIA_PROTOCOL_NAMES_H_
  12. #include <string>
  13. namespace cricket {
  14. // Names or name prefixes of protocols as defined by SDP specifications.
  15. extern const char kMediaProtocolRtpPrefix[];
  16. extern const char kMediaProtocolSctp[];
  17. extern const char kMediaProtocolDtlsSctp[];
  18. extern const char kMediaProtocolUdpDtlsSctp[];
  19. extern const char kMediaProtocolTcpDtlsSctp[];
  20. bool IsDtlsSctp(const std::string& protocol);
  21. bool IsPlainSctp(const std::string& protocol);
  22. // Returns true if the given media section protocol indicates use of RTP.
  23. bool IsRtpProtocol(const std::string& protocol);
  24. // Returns true if the given media section protocol indicates use of SCTP.
  25. bool IsSctpProtocol(const std::string& protocol);
  26. } // namespace cricket
  27. #endif // PC_MEDIA_PROTOCOL_NAMES_H_