blob: 584eac2fd3936e1a59572c252fc4f981e53703c7 [file] [log] [blame]
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +00001/*
2 * Copyright 2004 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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef P2P_BASE_P2PCONSTANTS_H_
12#define P2P_BASE_P2PCONSTANTS_H_
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000013
14#include <string>
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000015
16namespace cricket {
17
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000018// CN_ == "content name". When we initiate a session, we choose the
19// name, and when we receive a Gingle session, we provide default
20// names (since Gingle has no content names). But when we receive a
21// Jingle call, the content name can be anything, so don't rely on
22// these values being the same as the ones received.
23extern const char CN_AUDIO[];
24extern const char CN_VIDEO[];
25extern const char CN_DATA[];
26extern const char CN_OTHER[];
pthatcher@webrtc.org5ad41782014-12-23 22:14:15 +000027
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000028// GN stands for group name
29extern const char GROUP_TYPE_BUNDLE[];
30
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000031extern const int ICE_UFRAG_LENGTH;
32extern const int ICE_PWD_LENGTH;
33extern const size_t ICE_UFRAG_MIN_LENGTH;
34extern const size_t ICE_PWD_MIN_LENGTH;
35extern const size_t ICE_UFRAG_MAX_LENGTH;
36extern const size_t ICE_PWD_MAX_LENGTH;
pthatcher@webrtc.org5ad41782014-12-23 22:14:15 +000037
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000038extern const int ICE_CANDIDATE_COMPONENT_RTP;
39extern const int ICE_CANDIDATE_COMPONENT_RTCP;
40extern const int ICE_CANDIDATE_COMPONENT_DEFAULT;
41
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000042// RFC 4145, SDP setup attribute values.
43extern const char CONNECTIONROLE_ACTIVE_STR[];
44extern const char CONNECTIONROLE_PASSIVE_STR[];
45extern const char CONNECTIONROLE_ACTPASS_STR[];
46extern const char CONNECTIONROLE_HOLDCONN_STR[];
47
48} // namespace cricket
49
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020050#endif // P2P_BASE_P2PCONSTANTS_H_