jrtplib  3.6.0
rtpdefines.h
1 /*
2 
3  This file is a part of JRTPLIB
4  Copyright (c) 1999-2006 Jori Liesenborgs
5 
6  Contact: jori.liesenborgs@gmail.com
7 
8  This library was developed at the "Expertisecentrum Digitale Media"
9  (http://www.edm.uhasselt.be), a research center of the Hasselt University
10  (http://www.uhasselt.be). The library is based upon work done for
11  my thesis at the School for Knowledge Technology (Belgium/The Netherlands).
12 
13  Permission is hereby granted, free of charge, to any person obtaining a
14  copy of this software and associated documentation files (the "Software"),
15  to deal in the Software without restriction, including without limitation
16  the rights to use, copy, modify, merge, publish, distribute, sublicense,
17  and/or sell copies of the Software, and to permit persons to whom the
18  Software is furnished to do so, subject to the following conditions:
19 
20  The above copyright notice and this permission notice shall be included
21  in all copies or substantial portions of the Software.
22 
23  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
29  IN THE SOFTWARE.
30 
31 */
32 
33 #ifndef RTPDEFINES_H
34 
35 #define RTPDEFINES_H
36 
37 #define RTP_VERSION 2
38 #define RTP_MAXCSRCS 15
39 #define RTP_MINPACKETSIZE 600
40 #define RTP_DEFAULTPACKETSIZE 1400
41 #define RTP_PROBATIONCOUNT 2
42 #define RTP_MAXPRIVITEMS 256
43 #define RTP_SENDERTIMEOUTMULTIPLIER 2
44 #define RTP_BYETIMEOUTMULTIPLIER 1
45 #define RTP_MEMBERTIMEOUTMULTIPLIER 5
46 #define RTP_COLLISIONTIMEOUTMULTIPLIER 10
47 #define RTP_NOTETTIMEOUTMULTIPLIER 25
48 #define RTP_DEFAULTSESSIONBANDWIDTH 10000.0
49 
50 #define RTP_RTCPTYPE_SR 200
51 #define RTP_RTCPTYPE_RR 201
52 #define RTP_RTCPTYPE_SDES 202
53 #define RTP_RTCPTYPE_BYE 203
54 #define RTP_RTCPTYPE_APP 204
55 
56 #define RTCP_SDES_ID_CNAME 1
57 #define RTCP_SDES_ID_NAME 2
58 #define RTCP_SDES_ID_EMAIL 3
59 #define RTCP_SDES_ID_PHONE 4
60 #define RTCP_SDES_ID_LOCATION 5
61 #define RTCP_SDES_ID_TOOL 6
62 #define RTCP_SDES_ID_NOTE 7
63 #define RTCP_SDES_ID_PRIVATE 8
64 #define RTCP_SDES_NUMITEMS_NONPRIVATE 7
65 #define RTCP_SDES_MAXITEMLENGTH 255
66 
67 #define RTCP_BYE_MAXREASONLENGTH 255
68 #define RTCP_DEFAULTMININTERVAL 5.0
69 #define RTCP_DEFAULTBANDWIDTHFRACTION 0.05
70 #define RTCP_DEFAULTSENDERFRACTION 0.25
71 #define RTCP_DEFAULTHALFATSTARTUP true
72 #define RTCP_DEFAULTIMMEDIATEBYE true
73 #define RTCP_DEFAULTSRBYE true
74 
75 #if (defined(WIN32) || defined(_WIN32_WCE))
76  #if (!defined(_WIN32_WCE)) && (defined(_MSC_VER) && _MSC_VER >= 1400 )
77  #define RTP_SNPRINTF _snprintf_s
78  #else
79  #define RTP_SNPRINTF _snprintf
80  #endif
81 #else
82  #define RTP_SNPRINTF snprintf
83 #endif // WIN32 || _WIN32_WCE
84 
85 #endif // RTPDEFINES_H
86