Alexandre Lision | 51140e1 | 2013-12-02 10:54:09 -0500 | [diff] [blame] | 1 | /* |
| 2 | Copyright (C) 2006-2007 Werner Dittmann |
| 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 3 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, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #ifndef _ZRTPCCRTP_H_ |
| 19 | #define _ZRTPCCRTP_H_ |
| 20 | |
| 21 | #include <ccrtp/rtp.h> |
Alexandre Lision | 7fd5d3d | 2013-12-04 13:06:40 -0500 | [diff] [blame] | 22 | #include <ZrtpQueue.h> |
Alexandre Lision | 51140e1 | 2013-12-02 10:54:09 -0500 | [diff] [blame] | 23 | |
| 24 | NAMESPACE_COMMONCPP |
| 25 | |
| 26 | // Define a dummy variable only to overcome a doxygen problem. |
| 27 | static int dummy __attribute__ ((unused)) = 0; |
| 28 | |
| 29 | |
| 30 | /** |
| 31 | * @typedef SymmetricZRTPSession |
| 32 | * |
| 33 | * Uses one pair of sockets, (1) for RTP data and (2) for RTCP |
| 34 | * transmission/reception. |
| 35 | * |
| 36 | * This session uses the ZrtpQueue instead of the AVPQueue. The ZrtpQueue |
| 37 | * inherits from AVPQueue and adds support for ZRTP thus enabling |
| 38 | * ad-hoc key negotiation to setup SRTP sessions. |
| 39 | * |
| 40 | * @short Symmetric UDP/IPv4 RTP session scheduled by one thread of execution. |
| 41 | **/ |
| 42 | typedef SingleThreadRTPSession<SymmetricRTPChannel, |
| 43 | SymmetricRTPChannel, |
| 44 | ZrtpQueue> SymmetricZRTPSession; |
| 45 | |
| 46 | |
| 47 | #ifdef CCXX_IPV6 |
| 48 | /** |
| 49 | * @typedef SymmetricZRTPSession |
| 50 | * |
| 51 | * Uses one pair of sockets, (1) for RTP data and (2) for RTCP |
| 52 | * transmission/reception. |
| 53 | * |
| 54 | * This session uses the ZrtpQueue instead of the AVPQueue. The ZrtpQueue |
| 55 | * inherits from AVPQueue and adds support for ZRTP thus enabling |
| 56 | * ad-hoc key negotiation to setup SRTP sessions. |
| 57 | * |
| 58 | * @short Symmetric UDP/IPv6 RTP session scheduled by one thread of execution. |
| 59 | **/ |
| 60 | typedef SingleThreadRTPSessionIPV6<SymmetricRTPChannelIPV6, |
| 61 | SymmetricRTPChannelIPV6, |
| 62 | ZrtpQueue> SymmetricZRTPSessionIPV6; |
| 63 | #endif // CCXX_IPV6 |
| 64 | |
| 65 | END_NAMESPACE |
| 66 | |
| 67 | #endif // _ZRTPCCRTP_H_ |
| 68 | |
| 69 | |
| 70 | /** EMACS ** |
| 71 | * Local variables: |
| 72 | * mode: c++ |
| 73 | * c-default-style: ellemtel |
| 74 | * c-basic-offset: 4 |
| 75 | * End: |
| 76 | */ |