doc_samples.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. /**
  19. @addtogroup samples_page
  20. Several samples that are included in the PJSIP distributions. The screenshots
  21. below were taken on a Windows machine, but the library is very portable and
  22. it is known to run on platforms such as Linux, MacOS X, Windows Mobile,
  23. Symbian, and so on.
  24. - ICE demo sample: \src{pjsip-apps/src/samples/icedemo.c} <br />\n
  25. This sample demonstrates how to use \ref PJNATH_ICE_STREAM_TRANSPORT
  26. <b>without</b> using signaling protocol such as <b>SIP</b>. It provides
  27. interactive user interface to create and manage the ICE sessions as well
  28. as to exchange SDP with another ICE demo instance.\n\n
  29. \img{pjnath/docs/ice_demo.jpg,ice_demo on WinXP}
  30. - TURN client sample: \srcdir{pjnath/src/pjturn-client/} <br />\n
  31. This sample demonstrates how to use \ref PJNATH_TURN_SOCK
  32. and also \ref PJNATH_STUN_SOCK. It provides interactive
  33. user interface to manage allocation, permissions, and
  34. channel bindings.\n\n
  35. \img{pjnath/docs/pjturn_client.jpg,pjturn_client on WinXP}
  36. - TURN server sample: \srcdir{pjnath/src/pjturn-srv/} <br />\n
  37. This is a simple sample TURN server application, which
  38. we mainly use for testing (as back then there is no TURN
  39. server available).\n
  40. */
  41. /**
  42. \page turn_client_sample pjturn-client, a sample TURN client
  43. This is a simple, interactive TURN client application, with the
  44. following features:
  45. - DNS SRV resolution
  46. - TCP connection to TURN server
  47. - Optional fingerprint
  48. This file is pjnath/src/pjturn-client/client_main.c.
  49. Screenshot on WinXP: \image html pjturn_client.jpg "pjturn_client on WinXP"
  50. \includelineno client_main.c.
  51. */
  52. /**
  53. \page ice_demo_sample ice_demo, an interactive ICE endpoint
  54. This sample demonstrates how to use \ref PJNATH_ICE_STREAM_TRANSPORT
  55. <b>without</b> using signaling protocol such as SIP. It provides
  56. interactive user interface to create and manage the ICE sessions as well
  57. as to exchange SDP with another ice_demo instance.
  58. Features of the demo application:
  59. - supports host, STUN, and TURN candidates
  60. - disabling of host candidates
  61. - DNS SRV resolution for STUN and TURN servers
  62. - TCP connection to TURN server
  63. - Optional use of fingerprint for TURN
  64. - prints and parse SDP containing ICE infos
  65. - exchange SDP with copy/paste
  66. This file is pjsip-apps/src/samples/icedemo.c
  67. Screenshot on WinXP: \image html ice_demo.jpg "ice_demo on WinXP"
  68. \includelineno icedemo.c.
  69. */