• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
11 #ifndef WEBRTC_P2P_BASE_CONSTANTS_H_
12 #define WEBRTC_P2P_BASE_CONSTANTS_H_
13 
14 #include <string>
15 
16 namespace cricket {
17 
18 // 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.
23 extern const char CN_AUDIO[];
24 extern const char CN_VIDEO[];
25 extern const char CN_DATA[];
26 extern const char CN_OTHER[];
27 
28 // GN stands for group name
29 extern const char GROUP_TYPE_BUNDLE[];
30 
31 extern const int ICE_UFRAG_LENGTH;
32 extern const int ICE_PWD_LENGTH;
33 extern const size_t ICE_UFRAG_MIN_LENGTH;
34 extern const size_t ICE_PWD_MIN_LENGTH;
35 extern const size_t ICE_UFRAG_MAX_LENGTH;
36 extern const size_t ICE_PWD_MAX_LENGTH;
37 
38 extern const int ICE_CANDIDATE_COMPONENT_RTP;
39 extern const int ICE_CANDIDATE_COMPONENT_RTCP;
40 extern const int ICE_CANDIDATE_COMPONENT_DEFAULT;
41 
42 extern const char NS_JINGLE_RTP[];
43 extern const char NS_JINGLE_DRAFT_SCTP[];
44 
45 // RFC 4145, SDP setup attribute values.
46 extern const char CONNECTIONROLE_ACTIVE_STR[];
47 extern const char CONNECTIONROLE_PASSIVE_STR[];
48 extern const char CONNECTIONROLE_ACTPASS_STR[];
49 extern const char CONNECTIONROLE_HOLDCONN_STR[];
50 
51 }  // namespace cricket
52 
53 #endif  // WEBRTC_P2P_BASE_CONSTANTS_H_
54