rtpdefines.h 3.0 KB

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