reports.h
资源名称:h323.zip [点击查看]
上传用户:hnnddl
上传日期:2007-01-06
资源大小:3580k
文件大小:3k
源码类别:
IP电话/视频会议
开发平台:
WINDOWS
- /*
- * $Revision: 1.6 $
- * $Date: 1998/05/19 18:31:00 $
- */
- ////////////////////////////////////////////////////////////////
- // Copyright (c) 1996,97 Lucent Technologies //
- // All Rights Reserved //
- // //
- // THIS IS UNPUBLISHED //
- // PROPRIETARY SOURCE //
- // CODE OF Lucent Technologies //
- // AND elemedia //
- // //
- // The copyright notice above does not evidence any //
- // actual or intended publication of such source code//
- ////////////////////////////////////////////////////////////////
- //
- ////////////////////////////////////////////////////////////////
- // File : reports.h //
- // //
- // //
- // History: //
- // 15_Jan_1997 Created //
- // 08_Jul_1997 Sun5 Changes. //
- // 09 Jul 1997 Unixware changes //
- // 18_Jul_1997 pack() does not work on sunpro compiler v4.2 //
- // 24_Mar_1998 Added support for hpux //
- // //
- ////////////////////////////////////////////////////////////////
- #if (!defined(__REPORTS_H__))
- #define __REPORTS_H__
- #if (defined(WIN32))
- #pragma pack(push)
- #pragma pack(1)
- #elif (defined(__SVR4) || defined(__GNUC__) || defined (__GNUG__))
- #pragma pack(1)
- #elif (defined(__hpux))
- // HP doesn't need pack
- #else
- #error "Don't know how to pack"
- #endif
- // Sender info block of a SR
- struct RTCPSenderInfo
- {
- unsigned int sr_sec; // more significant 32 bits of NTP time
- unsigned int sr_fraction; // less significant 32 bits NTP time
- unsigned int sr_ts; // timestamp based on sampling clock
- unsigned int sr_np; // no. packets sent
- unsigned int sr_nb; // no. bytes sent
- };
- // Reception report
- struct RTCPReceptionReport
- {
- unsigned int rr_srcid; // sender being reported
- unsigned int rr_loss; // loss stats (8:fraction(LSB), 24:cumulative)
- unsigned int rr_ehsr; // ext. highest seqno received
- unsigned int rr_dv; // jitter (delay variance)
- unsigned int rr_lsr; // orig. ts from last rr from this src
- unsigned int rr_dlsr; // time from recpt of last rr to xmit time
- };
- #if (defined(WIN32))
- #pragma pack(pop)
- #elif (defined(__SVR4) || defined(__GNUC__) || defined (__GNUG__))
- #if (defined(__SUNPRO_CC) || defined(__SUNPRO_C))
- #pragma pack(4) // bug in solaris compiler...
- #else
- #pragma pack()
- #endif
- #elif (defined(__hpux))
- // HP doesn't need pack
- #else
- #error "Don't know how to pack"
- #endif
- #endif // __REPORTS_H__