blob: 1f60b6401290af7a964c4233d77b42a3b6eae0a2 [file] [log] [blame]
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +00001/*
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
Steve Anton10542f22019-01-11 09:11:00 -080011#ifndef P2P_BASE_TRANSPORT_INFO_H_
12#define P2P_BASE_TRANSPORT_INFO_H_
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000013
14#include <string>
15#include <vector>
16
Patrik Höglunde2d6a062017-10-05 14:53:33 +020017#include "api/candidate.h"
Steve Anton10542f22019-01-11 09:11:00 -080018#include "p2p/base/p2p_constants.h"
19#include "p2p/base/transport_description.h"
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020020#include "rtc_base/helpers.h"
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000021
22namespace cricket {
23
24// A TransportInfo is NOT a transport-info message. It is comparable
25// to a "ContentInfo". A transport-infos message is basically just a
26// collection of TransportInfos.
27struct TransportInfo {
28 TransportInfo() {}
29
30 TransportInfo(const std::string& content_name,
31 const TransportDescription& description)
Yves Gerey665174f2018-06-19 15:03:05 +020032 : content_name(content_name), description(description) {}
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000033
34 std::string content_name;
35 TransportDescription description;
36};
37
38typedef std::vector<TransportInfo> TransportInfos;
39
40} // namespace cricket
41
Steve Anton10542f22019-01-11 09:11:00 -080042#endif // P2P_BASE_TRANSPORT_INFO_H_