Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

private.h

Go to the documentation of this file.
00001 // Copyright (C) 1999-2001 Open Source Telecom Corporation.
00002 //  
00003 // This program is free software; you can redistribute it and/or modify
00004 // it under the terms of the GNU General Public License as published by
00005 // the Free Software Foundation; either version 2 of the License, or
00006 // (at your option) any later version.
00007 // 
00008 // This program is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 // 
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software 
00015 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00016 // 
00017 // As a special exception to the GNU General Public License, permission is 
00018 // granted for additional uses of the text contained in its release 
00019 // of ccRTP.
00020 // 
00021 // The exception is that, if you link the ccRTP library with other
00022 // files to produce an executable, this does not by itself cause the
00023 // resulting executable to be covered by the GNU General Public License.
00024 // Your use of that executable is in no way restricted on account of
00025 // linking the ccRTP library code into it.
00026 // 
00027 // This exception does not however invalidate any other reasons why
00028 // the executable file might be covered by the GNU General Public License.
00029 // 
00030 // This exception applies only to the code released under the 
00031 // name ccRTP.  If you copy code from other releases into a copy of
00032 // ccRTP, as the General Public License permits, the exception does
00033 // not apply to the code that you add in this way.  To avoid misleading
00034 // anyone as to the status of such modified files, you must delete
00035 // this exception notice from them.
00036 // 
00037 // If you write modifications of your own for ccRTP, it is your choice
00038 // whether to permit this exception to apply to your modifications.
00039 // If you do not wish that, delete this exception notice.  
00040 
00049 #include "config.h"
00050 #undef  PACKAGE
00051 #undef  VERSION
00052 #include <cc++/config.h>
00053 #include <cc++/socket.h>
00054 #include <cc++/export.h>
00055 #include "rtp.h"
00056 #include "rtpext.h"
00057 
00058 // This is only of interest for developers, so it is included only if
00059 // --with-nana flag is given to configure
00060 #ifdef HAVE_LIBNANA
00061 #   include "nana.h"
00062 #   include "DL.h"
00063 #else
00064 #   define I(e)    /* empty */
00065 #   define DL(e)   /* empty */
00066 #   define VDL(e)  /* empty */
00067 #endif
00068 
00069 #ifdef   HAVE_CSTDLIB
00070 #include <cstdlib>
00071 #else
00072 #   ifdef   HAVE_STDLIB_H
00073 #      include <stdlib.h>
00074 #   else
00075 #      warning "Your system does not have cstdlib nor stdlib.h"
00076 #define getenv(w) ("unidentifiable_user")
00077 #   endif //HAVE_STDLIB_H
00078 #endif //HAVE_CSTDLIB
00079 
00080 #ifdef HAVE_SYS_UTSNAME_H
00081 #   include <sys/utsname.h>
00082 #else
00083 #   error "Portability problem: you do not have sys/utsname.h"
00084 #endif
00085 
00086 #ifdef  CCXX_NAMESPACES
00087 namespace ost {
00088 #endif
00089 
00090 // This is for the main page in Doxygen documentation
00099 // This will make doxygen to generate example descriptions
00120 #pragma pack(1)
00121 
00129  struct ReceiverInfo
00130 {
00131         uint8 flost;
00132         uint8 lost_msb;
00133         uint16 lost_lsb;
00134         uint32 highest_seqnum;
00135         uint32 jitter;
00136         uint32 lsr;
00137         uint32 dlsr;
00138 }       ;
00139 
00146 typedef struct 
00147 {
00148         uint32 ssrc;                   
00149         ReceiverInfo rinfo;
00150 }       RRBlock;
00151 
00158 typedef struct 
00159 {
00160         uint32 ssrc;                    
00161         RRBlock blocks [0];             
00162 }       RecvReport;
00163 
00169  struct SenderInfo
00170 {
00171         uint32 NTP_msb;
00172         uint32 NTP_lsb;
00173         uint32 RTPtimestamp;
00174         uint32 packet_count;
00175         uint32 octet_count;
00176 }       ;
00177 
00183 typedef struct 
00184 {
00185         uint32 ssrc;              
00186         SenderInfo sinfo;         
00187         RRBlock blocks [0];        
00188 }       SendReport;
00189 
00195 typedef struct 
00196 {
00197         uint8 type;
00198         uint8 len;
00199 }       SDESItem;
00200 
00206 typedef struct 
00207 {
00208         uint32 ssrc;
00209         SDESItem item;
00210 }       SDESChunk;
00211 
00217 typedef struct 
00218 {
00219         uint32 ssrc;          
00220         uint8 length;         
00221         char reason [0];      
00222 }       BYEPacket;
00223 
00229 typedef struct 
00230 {
00231         uint32 ssrc;          
00232         char name [4];
00233         char* data;
00234 }       APPPacket;
00235 
00246 struct RTCPPacket
00247 {
00248         RTCPFixedHeader fh;           
00249         union 
00250         {
00251                 SendReport SR;
00252                 RecvReport RR;
00253                 SDESChunk SDES; 
00254                 BYEPacket BYE;
00255                 APPPacket APP;
00256         }       info;                 
00257 }       ;
00258 
00259 #pragma pack()
00260 
00261 #ifdef  CCXX_NAMESPACES
00262 };
00263 #endif
00264 

Generated at Wed Dec 5 07:18:08 2001 for ccRTP by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001