sipxmedialib  Version 3.3
IRTPHeader.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2013 SIPez LLC. All rights reserved.
3 //
4 // Copyright (C) 2004-2006 SIPfoundry Inc.
5 // Licensed by SIPfoundry under the LGPL license.
6 //
7 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
8 // Licensed to SIPfoundry under a Contributor Agreement.
9 //
10 // $$
12 
13 
14 
15 
16 // Border Guard
17 #ifndef _IRTPHeader_h
18 #define _IRTPHeader_h
19 
20 #include "rtcp/RtcpConfig.h"
21 
22 // Includes
23 #include "IBaseClass.h"
24 
40 interface IRTPHeader
41  {
42 
43 // Public Methods
44 public:
45 
46  // virtual ~IRTPHeader();
47 
71  virtual unsigned long ParseRTPHeader(unsigned char *puchRTPBuffer,
72  unsigned long ulPacketLength)=0;
73 
97  virtual unsigned long FormatRTPHeader(unsigned char *puchRTPBuffer,
98  unsigned long ulPacketLength)=0;
99 
117  virtual unsigned long GetHeaderLength(void)=0;
118 
119 
137  virtual unsigned long GetVersion(void)=0;
138 
139 
157  virtual unsigned long GetPadding(void)=0;
158 
176  virtual unsigned long GetExtension(void)=0;
177 
178 
196  virtual unsigned long GetMarker(void)=0;
197 
198 
216  virtual unsigned long GetPayload(void)=0;
217 
218 
236  virtual unsigned long GetSequenceNo(void)=0;
237 
255  virtual void GetRTPTimestamp(uint32_t *pulTimestamp)=0;
256 
257 
277  virtual void GetRecvTimestamp(uint32_t *pulTimestamp)=0;
278 
279 
297  virtual ssrc_t GetSSRC(void)=0;
298 
299 
300 
322  virtual unsigned long GetCSRC(ssrc_t *paulCSRC, bool bNBO)=0;
323 
324 
325 };
326 
327 
328 #endif
virtual unsigned long GetSequenceNo(void)=0
virtual unsigned long GetHeaderLength(void)=0
virtual ssrc_t GetSSRC(void)=0
virtual unsigned long GetMarker(void)=0
virtual void GetRTPTimestamp(uint32_t *pulTimestamp)=0
virtual unsigned long FormatRTPHeader(unsigned char *puchRTPBuffer, unsigned long ulPacketLength)=0
uint32_t ssrc_t
Definition: RtcpConfig.h:62
virtual unsigned long GetPayload(void)=0
virtual unsigned long GetPadding(void)=0
virtual unsigned long GetExtension(void)=0
virtual void GetRecvTimestamp(uint32_t *pulTimestamp)=0
virtual unsigned long GetCSRC(ssrc_t *paulCSRC, bool bNBO)=0
virtual unsigned long GetVersion(void)=0