transport_info.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2012 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 P2P_BASE_TRANSPORT_INFO_H_
  11. #define P2P_BASE_TRANSPORT_INFO_H_
  12. #include <string>
  13. #include <vector>
  14. #include "api/candidate.h"
  15. #include "p2p/base/p2p_constants.h"
  16. #include "p2p/base/transport_description.h"
  17. #include "rtc_base/helpers.h"
  18. namespace cricket {
  19. // A TransportInfo is NOT a transport-info message. It is comparable
  20. // to a "ContentInfo". A transport-infos message is basically just a
  21. // collection of TransportInfos.
  22. struct TransportInfo {
  23. TransportInfo() {}
  24. TransportInfo(const std::string& content_name,
  25. const TransportDescription& description)
  26. : content_name(content_name), description(description) {}
  27. std::string content_name;
  28. TransportDescription description;
  29. };
  30. typedef std::vector<TransportInfo> TransportInfos;
  31. } // namespace cricket
  32. #endif // P2P_BASE_TRANSPORT_INFO_H_