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#include "webrtc/p2p/base/constants.h"
12
13#include <string>
14
15namespace cricket {
16
17const char CN_AUDIO[] = "audio";
18const char CN_VIDEO[] = "video";
19const char CN_DATA[] = "data";
20const char CN_OTHER[] = "main";
21
22const char GROUP_TYPE_BUNDLE[] = "BUNDLE";
23
24// Minimum ufrag length is 4 characters as per RFC5245. We chose 16 because
25// some internal systems expect username to be 16 bytes.
26const int ICE_UFRAG_LENGTH = 16;
27// Minimum password length of 22 characters as per RFC5245. We chose 24 because
28// some internal systems expect password to be multiple of 4.
29const int ICE_PWD_LENGTH = 24;
30const size_t ICE_UFRAG_MIN_LENGTH = 4;
31const size_t ICE_PWD_MIN_LENGTH = 22;
32const size_t ICE_UFRAG_MAX_LENGTH = 255;
33const size_t ICE_PWD_MAX_LENGTH = 256;
34
35// TODO: This is media-specific, so might belong
36// somewhere like media/base/constants.h
37const int ICE_CANDIDATE_COMPONENT_RTP = 1;
38const int ICE_CANDIDATE_COMPONENT_RTCP = 2;
39const int ICE_CANDIDATE_COMPONENT_DEFAULT = 1;
40
41const char NS_JINGLE_RTP[] = "urn:xmpp:jingle:apps:rtp:1";
42const char NS_JINGLE_DRAFT_SCTP[] = "google:jingle:sctp";
43
44// From RFC 4145, SDP setup attribute values.
45const char CONNECTIONROLE_ACTIVE_STR[] = "active";
46const char CONNECTIONROLE_PASSIVE_STR[] = "passive";
47const char CONNECTIONROLE_ACTPASS_STR[] = "actpass";
48const char CONNECTIONROLE_HOLDCONN_STR[] = "holdconn";
49
50}  // namespace cricket
51