00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
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