OPAL
Version 3.18.8
|
#include <pcapfile.h>
Inherits PFile.
Data Structures | |
struct | DecodeContext |
struct | DiscoveredRTPInfo |
struct | DiscoveredRTPKey |
struct | FileHeader |
class | Frame |
struct | Progress |
struct | RecordHeader |
Public Types | |
typedef PArray< DiscoveredRTPInfo > | DiscoveredRTP |
typedef PNotifierTemplate < Progress & > | ProgressNotifier |
typedef std::map < RTP_DataFrame::PayloadTypes, OpalMediaFormat > | PayloadMap |
Public Member Functions | |
OpalPCAPFile () | |
bool | Restart () |
void | PrintOn (ostream &strm) const |
bool | WriteFrame (const PEthSocket::Frame &frame) |
bool | WriteRTP (const RTP_DataFrame &rtp, WORD port=5000) |
int | GetDataLink (PBYTEArray &payload) |
int | GetIP (PBYTEArray &payload) |
int | GetTCP (PBYTEArray &payload) |
int | GetUDP (PBYTEArray &payload) |
int | GetRTP (RTP_DataFrame &rtp) |
int | GetDecodedRTP (RTP_DataFrame &decodedRTP, DecodeContext &context) |
int | DecodeRTP (RTP_DataFrame &encodedRTP, RTP_DataFrame &decodedRTP, DecodeContext &context) |
const PTime & | GetPacketTime () const |
const PIPSocket::Address & | GetSrcIP () const |
const PIPSocket::Address & | GetDstIP () const |
unsigned | IsFragmentated () const |
WORD | GetSrcPort () const |
WORD | GetDstPort () const |
void | SetFilterSrcIP (const PIPSocket::Address &ip) |
const PIPSocket::Address & | GetFilterSrcIP () const |
void | SetFilterDstIP (const PIPSocket::Address &ip) |
const PIPSocket::Address & | GetFilterDstIP () const |
void | SetFilterSrcPort (WORD port) |
WORD | GetFilterSrcPort () const |
void | SetFilterDstPort (WORD port) |
WORD | GetFilterDstPort () const |
bool | DiscoverRTP (DiscoveredRTP &discoveredRTP, const ProgressNotifier &progressNotifier=NULL) |
bool | SetFilters (const DiscoveredRTPInfo &discoveredRTP, const PString &format=PString::Empty()) |
void | SetPayloadMap (const PayloadMap &payloadMap, bool overwrite=false) |
bool | SetPayloadMap (RTP_DataFrame::PayloadTypes pt, const OpalMediaFormat &format) |
OpalMediaFormat | GetMediaFormat (const RTP_DataFrame &rtp) const |
Protected Types | |
typedef std::map < DiscoveredRTPKey, DiscoveryInfo > | DiscoveryMap |
Protected Member Functions | |
bool | InternalOpen (OpenMode mode, OpenOptions opt, PFileInfo::Permissions permissions) |
int | InternalDecodeRTP (RTP_DataFrame &encodedRTP, RTP_DataFrame &decodedRTP, DecodeContext &context) |
PDECLARE_MUTEX (m_writeMutex) | |
Protected Attributes | |
FileHeader | m_fileHeader |
Frame | m_rawPacket |
PIPSocketAddressAndPort | m_filterSrc |
PIPSocketAddressAndPort | m_filterDst |
RTP_SyncSourceId | m_filterSSRC |
PIPSocketAddressAndPort | m_packetSrc |
PIPSocketAddressAndPort | m_packetDst |
PayloadMap | m_payloadType2mediaFormat |
Class for a reading RTP from an Ethernet Capture (PCAP) file.
typedef PArray<DiscoveredRTPInfo> OpalPCAPFile::DiscoveredRTP |
|
protected |
typedef std::map<RTP_DataFrame::PayloadTypes, OpalMediaFormat> OpalPCAPFile::PayloadMap |
typedef PNotifierTemplate<Progress &> OpalPCAPFile::ProgressNotifier |
OpalPCAPFile::OpalPCAPFile | ( | ) |
int OpalPCAPFile::DecodeRTP | ( | RTP_DataFrame & | encodedRTP, |
RTP_DataFrame & | decodedRTP, | ||
DecodeContext & | context | ||
) |
bool OpalPCAPFile::DiscoverRTP | ( | DiscoveredRTP & | discoveredRTP, |
const ProgressNotifier & | progressNotifier = NULL |
||
) |
int OpalPCAPFile::GetDataLink | ( | PBYTEArray & | payload | ) |
int OpalPCAPFile::GetDecodedRTP | ( | RTP_DataFrame & | decodedRTP, |
DecodeContext & | context | ||
) |
|
inline |
References m_packetDst.
|
inline |
References m_packetDst.
|
inline |
References m_filterDst.
|
inline |
References m_filterDst.
|
inline |
References m_filterSrc.
|
inline |
References m_filterSrc.
int OpalPCAPFile::GetIP | ( | PBYTEArray & | payload | ) |
OpalMediaFormat OpalPCAPFile::GetMediaFormat | ( | const RTP_DataFrame & | rtp | ) | const |
|
inline |
References m_rawPacket.
int OpalPCAPFile::GetRTP | ( | RTP_DataFrame & | rtp | ) |
|
inline |
References m_packetSrc.
|
inline |
References m_packetSrc.
int OpalPCAPFile::GetTCP | ( | PBYTEArray & | payload | ) |
int OpalPCAPFile::GetUDP | ( | PBYTEArray & | payload | ) |
|
protected |
|
protected |
|
inline |
References m_rawPacket.
|
protected |
void OpalPCAPFile::PrintOn | ( | ostream & | strm | ) | const |
bool OpalPCAPFile::Restart | ( | ) |
|
inline |
References m_filterDst.
|
inline |
References m_filterDst.
bool OpalPCAPFile::SetFilters | ( | const DiscoveredRTPInfo & | discoveredRTP, |
const PString & | format = PString::Empty() |
||
) |
|
inline |
References m_filterSrc.
|
inline |
References m_filterSrc.
void OpalPCAPFile::SetPayloadMap | ( | const PayloadMap & | payloadMap, |
bool | overwrite = false |
||
) |
bool OpalPCAPFile::SetPayloadMap | ( | RTP_DataFrame::PayloadTypes | pt, |
const OpalMediaFormat & | format | ||
) |
bool OpalPCAPFile::WriteFrame | ( | const PEthSocket::Frame & | frame | ) |
bool OpalPCAPFile::WriteRTP | ( | const RTP_DataFrame & | rtp, |
WORD | port = 5000 |
||
) |
|
protected |
|
protected |
Referenced by GetFilterDstIP(), GetFilterDstPort(), SetFilterDstIP(), and SetFilterDstPort().
|
protected |
Referenced by GetFilterSrcIP(), GetFilterSrcPort(), SetFilterSrcIP(), and SetFilterSrcPort().
|
protected |
|
protected |
Referenced by GetDstIP(), and GetDstPort().
|
protected |
Referenced by GetSrcIP(), and GetSrcPort().
|
protected |
|
protected |
Referenced by GetPacketTime(), and IsFragmentated().