blob: 5d4b702d3dee5a39acc1d12bffa8a1d5fa3e696e (
plain)
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
|
/*
* Oreka -- A media capture and retrieval platform
*
* Copyright (C) 2005, orecx LLC
*
* http://www.orecx.com
*
* This program is free software, distributed under the terms of
* the GNU General Public License.
* Please refer to http://www.gnu.org/copyleft/gpl.html
*
*/
#ifndef __RTP_H__
#define __RTP_H__
#include "ace/OS_NS_arpa_inet.h"
#include "boost/shared_ptr.hpp"
#include "StdString.h"
// useful info we extract from an RTP packet
class RtpPacketInfo
{
public:
void ToString(CStdString& string);
RtpPacketInfo();
//CStdString m_sourceMac;
//CStdString m_destMac;
char m_sourceMac[6];
char m_destMac[6];
struct in_addr m_sourceIp;
struct in_addr m_destIp;
unsigned short m_sourcePort;
unsigned short m_destPort;
unsigned int m_payloadSize;
unsigned short m_payloadType;
unsigned char* m_payload;
unsigned short m_seqNum;
unsigned int m_timestamp;
time_t m_arrivalTimestamp;
};
typedef boost::shared_ptr<RtpPacketInfo> RtpPacketInfoRef;
class RtpEventInfo
{
public:
void ToString(CStdString& string);
unsigned short m_event;
unsigned short m_end;
unsigned short m_reserved;
unsigned short m_volume;
unsigned short m_duration;
unsigned int m_startTimestamp;
};
typedef boost::shared_ptr<RtpEventInfo> RtpEventInfoRef;
class RtcpSrcDescriptionPacketInfo
{
public:
void ToString(CStdString& string);
struct in_addr m_sourceIp;
struct in_addr m_destIp;
unsigned short m_sourcePort;
unsigned short m_destPort;
CStdString m_cnameUsername;
CStdString m_cnameDomain;
CStdString m_cnamePort;
CStdString m_fullCname;
};
typedef boost::shared_ptr<RtcpSrcDescriptionPacketInfo> RtcpSrcDescriptionPacketInfoRef;
#endif
|