rtpdefines.h

00001 /*
00002 
00003   This file is a part of JRTPLIB
00004   Copyright (c) 1999-2007 Jori Liesenborgs
00005 
00006   Contact: jori.liesenborgs@gmail.com
00007 
00008   This library was developed at the "Expertisecentrum Digitale Media"
00009   (http://www.edm.uhasselt.be), a research center of the Hasselt University
00010   (http://www.uhasselt.be). The library is based upon work done for 
00011   my thesis at the School for Knowledge Technology (Belgium/The Netherlands).
00012 
00013   Permission is hereby granted, free of charge, to any person obtaining a
00014   copy of this software and associated documentation files (the "Software"),
00015   to deal in the Software without restriction, including without limitation
00016   the rights to use, copy, modify, merge, publish, distribute, sublicense,
00017   and/or sell copies of the Software, and to permit persons to whom the
00018   Software is furnished to do so, subject to the following conditions:
00019 
00020   The above copyright notice and this permission notice shall be included
00021   in all copies or substantial portions of the Software.
00022 
00023   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00024   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00025   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00026   THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00027   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00028   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
00029   IN THE SOFTWARE.
00030 
00031 */
00032 
00033 #ifndef RTPDEFINES_H
00034 
00035 #define RTPDEFINES_H
00036 
00037 #define RTP_VERSION                                                     2
00038 #define RTP_MAXCSRCS                                                    15
00039 #define RTP_MINPACKETSIZE                                               600
00040 #define RTP_DEFAULTPACKETSIZE                                           1400
00041 #define RTP_PROBATIONCOUNT                                              2
00042 #define RTP_MAXPRIVITEMS                                                256
00043 #define RTP_SENDERTIMEOUTMULTIPLIER                                     2
00044 #define RTP_BYETIMEOUTMULTIPLIER                                        1
00045 #define RTP_MEMBERTIMEOUTMULTIPLIER                                     5
00046 #define RTP_COLLISIONTIMEOUTMULTIPLIER                                  10
00047 #define RTP_NOTETTIMEOUTMULTIPLIER                                      25
00048 #define RTP_DEFAULTSESSIONBANDWIDTH                                     10000.0
00049 
00050 #define RTP_RTCPTYPE_SR                                                 200
00051 #define RTP_RTCPTYPE_RR                                                 201
00052 #define RTP_RTCPTYPE_SDES                                               202
00053 #define RTP_RTCPTYPE_BYE                                                203
00054 #define RTP_RTCPTYPE_APP                                                204
00055 
00056 #define RTCP_SDES_ID_CNAME                                              1
00057 #define RTCP_SDES_ID_NAME                                               2
00058 #define RTCP_SDES_ID_EMAIL                                              3
00059 #define RTCP_SDES_ID_PHONE                                              4
00060 #define RTCP_SDES_ID_LOCATION                                           5
00061 #define RTCP_SDES_ID_TOOL                                               6
00062 #define RTCP_SDES_ID_NOTE                                               7
00063 #define RTCP_SDES_ID_PRIVATE                                            8
00064 #define RTCP_SDES_NUMITEMS_NONPRIVATE                                   7
00065 #define RTCP_SDES_MAXITEMLENGTH                                         255
00066 
00067 #define RTCP_BYE_MAXREASONLENGTH                                        255
00068 #define RTCP_DEFAULTMININTERVAL                                         5.0     
00069 #define RTCP_DEFAULTBANDWIDTHFRACTION                                   0.05
00070 #define RTCP_DEFAULTSENDERFRACTION                                      0.25
00071 #define RTCP_DEFAULTHALFATSTARTUP                                       true
00072 #define RTCP_DEFAULTIMMEDIATEBYE                                        true
00073 #define RTCP_DEFAULTSRBYE                                               true
00074 
00075 #if (defined(WIN32) || defined(_WIN32_WCE))
00076         #if (!defined(_WIN32_WCE)) && (defined(_MSC_VER) && _MSC_VER >= 1400 )
00077                 #define RTP_SNPRINTF _snprintf_s
00078         #else
00079                 #define RTP_SNPRINTF _snprintf
00080         #endif
00081 #else
00082         #define RTP_SNPRINTF snprintf
00083 #endif // WIN32 || _WIN32_WCE
00084 
00085 #endif // RTPDEFINES_H
00086 

Generated on Thu Feb 8 16:22:05 2007 for jrtplib by  doxygen 1.5.1