OPAL
Version 3.14.3
|
#include <pcapfile.h>
Inherits PFile.
Data Structures | |
struct | DiscoveredRTPInfo |
class | DiscoveredRTPMap |
struct | FileHeader |
class | Frame |
struct | RecordHeader |
Public Member Functions | |
OpalPCAPFile () | |
bool | Open (const PFilePath &filename, OpenMode mode=ReadOnly) |
bool | Restart () |
void | PrintOn (ostream &strm) const |
bool | WriteFrame (const PEthSocket::Frame &frame) |
int | GetDataLink (PBYTEArray &payload) |
int | GetIP (PBYTEArray &payload) |
int | GetTCP (PBYTEArray &payload) |
int | GetUDP (PBYTEArray &payload) |
int | GetRTP (RTP_DataFrame &rtp) |
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 (DiscoveredRTPMap &discoveredRTPMap) |
bool | SetFilters (const DiscoveredRTPInfo &rtp, int dir, const PString &format=PString::Empty()) |
bool | SetFilters (const DiscoveredRTPMap &rtp, size_t index, const PString &format=PString::Empty()) |
bool | SetPayloadMap (RTP_DataFrame::PayloadTypes pt, const OpalMediaFormat &format) |
OpalMediaFormat | GetMediaFormat (const RTP_DataFrame &rtp) const |
Protected Attributes | |
FileHeader | m_fileHeader |
Frame | m_rawPacket |
PCriticalSection | m_writeMutex |
PIPSocketAddressAndPort | m_filterSrc |
PIPSocketAddressAndPort | m_filterDst |
PIPSocketAddressAndPort | m_packetSrc |
PIPSocketAddressAndPort | m_packetDst |
std::map < RTP_DataFrame::PayloadTypes, OpalMediaFormat > | m_payloadType2mediaFormat |
Class for a reading RTP from an Ethernet Capture (PCAP) file.
OpalPCAPFile::OpalPCAPFile | ( | ) |
bool OpalPCAPFile::DiscoverRTP | ( | DiscoveredRTPMap & | discoveredRTPMap | ) |
int OpalPCAPFile::GetDataLink | ( | PBYTEArray & | payload | ) |
|
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 | ) |
|
inline |
References m_rawPacket.
bool OpalPCAPFile::Open | ( | const PFilePath & | filename, |
OpenMode | mode = ReadOnly |
||
) |
void OpalPCAPFile::PrintOn | ( | ostream & | strm | ) | const |
bool OpalPCAPFile::Restart | ( | ) |
|
inline |
References m_filterDst.
|
inline |
References m_filterDst.
bool OpalPCAPFile::SetFilters | ( | const DiscoveredRTPInfo & | rtp, |
int | dir, | ||
const PString & | format = PString::Empty() |
||
) |
bool OpalPCAPFile::SetFilters | ( | const DiscoveredRTPMap & | rtp, |
size_t | index, | ||
const PString & | format = PString::Empty() |
||
) |
|
inline |
References m_filterSrc.
|
inline |
References m_filterSrc.
bool OpalPCAPFile::SetPayloadMap | ( | RTP_DataFrame::PayloadTypes | pt, |
const OpalMediaFormat & | format | ||
) |
bool OpalPCAPFile::WriteFrame | ( | const PEthSocket::Frame & | frame | ) |
|
protected |
|
protected |
Referenced by GetFilterDstIP(), GetFilterDstPort(), SetFilterDstIP(), and SetFilterDstPort().
|
protected |
Referenced by GetFilterSrcIP(), GetFilterSrcPort(), SetFilterSrcIP(), and SetFilterSrcPort().
|
protected |
Referenced by GetDstIP(), and GetDstPort().
|
protected |
Referenced by GetSrcIP(), and GetSrcPort().
|
protected |
|
protected |
Referenced by GetPacketTime(), and IsFragmentated().
|
protected |