henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 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> |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 15 | |
| 16 | namespace cricket { |
| 17 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 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[]; |
pthatcher@webrtc.org | 5ad4178 | 2014-12-23 22:14:15 +0000 | [diff] [blame^] | 27 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 28 | // GN stands for group name |
| 29 | extern const char GROUP_TYPE_BUNDLE[]; |
| 30 | |
pthatcher@webrtc.org | 5ad4178 | 2014-12-23 22:14:15 +0000 | [diff] [blame^] | 31 | extern const char NS_JINGLE_ICE_UDP[]; |
| 32 | extern const char NS_GINGLE_P2P[]; |
| 33 | extern const char NS_GINGLE_RAW[]; |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 34 | |
pthatcher@webrtc.org | 5ad4178 | 2014-12-23 22:14:15 +0000 | [diff] [blame^] | 35 | extern const char ICE_OPTION_GICE[]; |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 36 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 37 | extern const int ICE_UFRAG_LENGTH; |
| 38 | extern const int ICE_PWD_LENGTH; |
| 39 | extern const size_t ICE_UFRAG_MIN_LENGTH; |
| 40 | extern const size_t ICE_PWD_MIN_LENGTH; |
| 41 | extern const size_t ICE_UFRAG_MAX_LENGTH; |
| 42 | extern const size_t ICE_PWD_MAX_LENGTH; |
pthatcher@webrtc.org | 5647877 | 2014-12-19 03:32:59 +0000 | [diff] [blame] | 43 | extern const size_t GICE_UFRAG_MAX_LENGTH; |
pthatcher@webrtc.org | 5ad4178 | 2014-12-23 22:14:15 +0000 | [diff] [blame^] | 44 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 45 | extern const int ICE_CANDIDATE_COMPONENT_RTP; |
| 46 | extern const int ICE_CANDIDATE_COMPONENT_RTCP; |
| 47 | extern const int ICE_CANDIDATE_COMPONENT_DEFAULT; |
| 48 | |
pthatcher@webrtc.org | 5ad4178 | 2014-12-23 22:14:15 +0000 | [diff] [blame^] | 49 | extern const char NS_JINGLE_RTP[]; |
| 50 | extern const char NS_JINGLE_DRAFT_SCTP[]; |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 51 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 52 | extern const char GICE_CHANNEL_NAME_RTP[]; |
| 53 | extern const char GICE_CHANNEL_NAME_RTCP[]; |
| 54 | extern const char GICE_CHANNEL_NAME_VIDEO_RTP[]; |
| 55 | extern const char GICE_CHANNEL_NAME_VIDEO_RTCP[]; |
| 56 | extern const char GICE_CHANNEL_NAME_DATA_RTP[]; |
| 57 | extern const char GICE_CHANNEL_NAME_DATA_RTCP[]; |
| 58 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 59 | // RFC 4145, SDP setup attribute values. |
| 60 | extern const char CONNECTIONROLE_ACTIVE_STR[]; |
| 61 | extern const char CONNECTIONROLE_PASSIVE_STR[]; |
| 62 | extern const char CONNECTIONROLE_ACTPASS_STR[]; |
| 63 | extern const char CONNECTIONROLE_HOLDCONN_STR[]; |
| 64 | |
| 65 | } // namespace cricket |
| 66 | |
| 67 | #endif // WEBRTC_P2P_BASE_CONSTANTS_H_ |