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 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 11 | #ifndef P2P_BASE_P2PCONSTANTS_H_ |
| 12 | #define P2P_BASE_P2PCONSTANTS_H_ |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 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 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 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; |
pthatcher@webrtc.org | 5ad4178 | 2014-12-23 22:14:15 +0000 | [diff] [blame] | 37 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 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 | |
henrike@webrtc.org | 269fb4b | 2014-10-28 22:20:11 +0000 | [diff] [blame] | 42 | // RFC 4145, SDP setup attribute values. |
| 43 | extern const char CONNECTIONROLE_ACTIVE_STR[]; |
| 44 | extern const char CONNECTIONROLE_PASSIVE_STR[]; |
| 45 | extern const char CONNECTIONROLE_ACTPASS_STR[]; |
| 46 | extern const char CONNECTIONROLE_HOLDCONN_STR[]; |
| 47 | |
| 48 | } // namespace cricket |
| 49 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 50 | #endif // P2P_BASE_P2PCONSTANTS_H_ |