#include <PacketHeader.h>
Public Member Functions | |
PacketHeader (JackTrip *jacktrip) | |
The class Constructor. | |
virtual | ~PacketHeader () |
The class Destructor. | |
virtual void | fillHeaderCommonFromAudio ()=0 |
virtual void | parseHeader ()=0 |
virtual void | checkPeerSettings (int8_t *full_packet)=0 |
virtual uint16_t | getPeerSequenceNumber (int8_t *full_packet) const =0 |
virtual uint64_t | getPeerTimeStamp (int8_t *full_packet) const =0 |
virtual void | increaseSequenceNumber () |
virtual uint16_t | getSequenceNumber () const |
virtual int | getHeaderSizeInBytes () const =0 |
virtual void | putHeaderInPacketBaseClass (int8_t *full_packet, const HeaderStruct &header_struct) |
virtual void | putHeaderInPacket (int8_t *full_packet)=0 |
Static Public Member Functions | |
static uint64_t | usecTime () |
Return a time stamp in microseconds. | |
Private Attributes | |
uint16_t | mSeqNumber |
JackTrip * | mJackTrip |
JackTrip mediator class. |
PacketHeader::PacketHeader | ( | JackTrip * | jacktrip | ) |
The class Constructor.
virtual PacketHeader::~PacketHeader | ( | ) | [inline, virtual] |
The class Destructor.
uint64_t PacketHeader::usecTime | ( | ) | [static] |
Return a time stamp in microseconds.
virtual void PacketHeader::fillHeaderCommonFromAudio | ( | ) | [pure virtual] |
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
virtual void PacketHeader::parseHeader | ( | ) | [pure virtual] |
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
virtual void PacketHeader::checkPeerSettings | ( | int8_t * | full_packet | ) | [pure virtual] |
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
virtual uint64_t PacketHeader::getPeerTimeStamp | ( | int8_t * | full_packet | ) | const [pure virtual] |
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
virtual void PacketHeader::increaseSequenceNumber | ( | ) | [inline, virtual] |
Reimplemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
virtual uint16_t PacketHeader::getSequenceNumber | ( | ) | const [inline, virtual] |
Reimplemented in DefaultHeader.
virtual int PacketHeader::getHeaderSizeInBytes | ( | ) | const [pure virtual] |
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
virtual void PacketHeader::putHeaderInPacketBaseClass | ( | int8_t * | full_packet, | |
const HeaderStruct & | header_struct | |||
) | [inline, virtual] |
virtual void PacketHeader::putHeaderInPacket | ( | int8_t * | full_packet | ) | [pure virtual] |
Implemented in DefaultHeader, JamLinkHeader, and EmptyHeader.
uint16_t PacketHeader::mSeqNumber [private] |
JackTrip* PacketHeader::mJackTrip [private] |