/usr/include/sipxtapi/rtcp/IRTPHeader.h is in libsipxtapi-dev 3.3.0~test17-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | //
// Copyright (C) 2006-2013 SIPez LLC. All rights reserved.
//
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Border Guard
#ifndef _IRTPHeader_h
#define _IRTPHeader_h
#include "rtcp/RtcpConfig.h"
// Includes
#include "IBaseClass.h"
/**
*
* Interface Name: IRTPHeader
*
* Inheritance: None
*
*
* Description: The IRTPHeader interface allows a user to create an RTP
* Header given an RTP packet received from the network. It
* also provides the user with services to extract
* information from this header once it has been formed.
*
* Notes:
*
*/
interface IRTPHeader
{
// Public Methods
public:
// virtual ~IRTPHeader();
/**
*
* Method Name: ParseRTPHeader
*
*
* Inputs: unsigned char *puchRTPBuffer -
* Character Buffer containing RTP Packet
* unsigned long ulPacketLength -
* Optional length of buffer content passed
*
* Outputs: None
*
* Returns: unsigned long
*
* Description: Parse an RTP network packet into an Report header. Some basic
* check will be performed to determine whether the packet is
* valid.
*
* Usage Notes: A buffer of sufficient size should be allocated and passed to
* this parsing method.
*
*
*/
virtual unsigned long ParseRTPHeader(unsigned char *puchRTPBuffer,
unsigned long ulPacketLength)=0;
/**
*
* Method Name: FormatRTPHeader
*
*
* Inputs: unsigned char *puchRTPBuffer -
* Character Buffer containing RTP Packet
* unsigned long ulPacketLength -
* Optional length of buffer content passed
*
* Outputs: None
*
* Returns: unsigned long
*
* Description: Constructs an RTP Report header using information passed in
* the RTP character buffer. Some basic check will be performed
* to determine whether the packet is valid.
*
* Usage Notes: A buffer of sufficient size should be allocated and passed to
* this formatting method.
*
*
*/
virtual unsigned long FormatRTPHeader(unsigned char *puchRTPBuffer,
unsigned long ulPacketLength)=0;
/**
*
* Method Name: GetHeaderLength
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Returns the size of the RTP Header
*
* Description: Returns the size of the RTP Header that preceeds the payload.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetHeaderLength(void)=0;
/**
*
* Method Name: GetVersion
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Returns the Version
*
* Description: Retrieves the Version attribute stored within the object.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetVersion(void)=0;
/**
*
* Method Name: GetPadding
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Padding Flag
*
* Description: Returns the padding flag value associated with the RTP packet.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetPadding(void)=0;
/**
*
* Method Name: GetExtension
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Header Extension Flag
*
* Description: Returns the header extension flag from the RTP packet header.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetExtension(void)=0;
/**
*
* Method Name: GetMarker
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Marker Flag
*
* Description: Returns the marker flag value associated with the RTP packet.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetMarker(void)=0;
/**
*
* Method Name: GetPayload
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Returns the Payload Type
*
* Description: Retrieves the payload type associated with this RTP report.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetPayload(void)=0;
/**
*
* Method Name: GetSequenceNo
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Packet Sequence Number
*
* Description: Returns the sequence number from the RTP packet.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetSequenceNo(void)=0;
/**
*
* Method Name: GetRTPTimestamp
*
*
* Inputs: None
*
* Outputs: unsigned long *pulTimestamp - RTP Packet Timestamp
*
* Returns: void
*
* Description: Returns the timestamp value associated with the RTP packet.
*
* Usage Notes:
*
*
*/
virtual void GetRTPTimestamp(uint32_t *pulTimestamp)=0;
/**
*
* Method Name: GetRecvTimestamp
*
*
* Inputs: None
*
* Outputs: unsigned long *pulTimestamp - Packet TReceive Timestamp
*
* Returns: void
*
* Description: Returns the timestamp value associated with the RTP packet.
* The Received Timestamp is the time of reception of the RTP
* Packet.
*
* Usage Notes:
*
*
*/
virtual void GetRecvTimestamp(uint32_t *pulTimestamp)=0;
/**
*
* Method Name: GetSSRC
*
*
* Inputs: None
*
* Outputs: None
*
* Returns: unsigned long - Packet Source Identifier
*
* Description: Returns the SSRC value associated with the RTP packet.
*
* Usage Notes:
*
*
*/
virtual ssrc_t GetSSRC(void)=0;
/**
*
* Method Name: GetCSRC
*
*
* Inputs: bool bNBO -
* Flag specifying whether data should be represented
* in Network Byte order format
*
* Outputs: unsigned long *paulCSRC -
* Contributing Source Identifier(s) Array pointer
*
* Returns: unsigned long -
* Number of Contributing Source Identifier(s)
*
* Description: Returns the contributing source values from the RTP packet.
*
* Usage Notes:
*
*
*/
virtual unsigned long GetCSRC(ssrc_t *paulCSRC, bool bNBO)=0;
};
#endif
|