27#ifndef _RTP_INTERFACE_HH
30#ifndef _SRTP_CRYPTOGRAPHIC_CONTEXT_HH
58 void setupForSRTP(u_int8_t
const* MIKEYStateMessage,
unsigned MIKEYStateMessageSize);
171 void noteIncomingRR(u_int32_t SSRC,
struct sockaddr_storage
const& lastFromAddress,
172 unsigned lossStats,
unsigned lastPacketNumReceived,
173 unsigned jitter,
unsigned lastSRTime,
unsigned diffSR_RRTime);
void removeStreamSocket(int sockNum, unsigned char streamChannelId)
void setStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
void addStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
virtual char const * sdpMediaType() const
unsigned fEstimatedBitrate
void setStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
u_int32_t convertToRTPTimestamp(struct timeval tv)
unsigned packetCount() const
unsigned fTotalOctetCount
unsigned octetCount() const
char const * fRTPPayloadFormatName
Boolean & enableRTCPReports()
void addStreamSocket(int sockNum, unsigned char streamChannelId, TLSState *tlsState)
void resetPresentationTimes()
u_int32_t presetNextTimestamp()
SRTPCryptographicContext * getCrypto() const
static Boolean lookupByName(UsageEnvironment &env, char const *sinkName, RTPSink *&resultSink)
unsigned rtpTimestampFrequency() const
void removeStreamSocket(int sockNum, unsigned char streamChannelId)
u_int32_t fCurrentTimestamp
RTPTransmissionStatsDB * fTransmissionStatsDB
virtual char * rtpmapLine() const
Groupsock & groupsockBeingUsed()
Boolean fEnableRTCPReports
struct timeval fTotalOctetCountStartTime fInitialPresentationTime fMostRecentPresentationTime
void getTotalBitrate(unsigned &outNumBytes, double &outElapsedTime)
unsigned fTimestampFrequency
virtual char * keyMgmtLine()
void setupForSRTP(Boolean useEncryption)
struct timeval const & creationTime() const
unsigned numChannels() const
struct timeval const & mostRecentPresentationTime() const
virtual Boolean isRTPSink() const
Boolean fNextTimestampHasBeenPreset
unsigned char rtpPayloadType() const
void setRTPTimestampFrequency(unsigned freq)
struct timeval const & initialPresentationTime() const
unsigned char fRTPPayloadType
u_int8_t * setupForSRTP(Boolean useEncryption, unsigned &resultMIKEYStateMessageSize)
RTPTransmissionStatsDB & transmissionStatsDB() const
RTPSink(UsageEnvironment &env, Groupsock *rtpGS, unsigned char rtpPayloadType, u_int32_t rtpTimestampFrequency, char const *rtpPayloadFormatName, unsigned numChannels)
Boolean nextTimestampHasBeenPreset() const
struct timeval fCreationTime
char const * rtpPayloadFormatName() const
Groupsock const & groupsockBeingUsed() const
u_int16_t currentSeqNo() const
SRTPCryptographicContext * fCrypto
virtual char const * auxSDPLine()
RTPInterface fRTPInterface
void setupForSRTP(u_int8_t const *MIKEYStateMessage, unsigned MIKEYStateMessageSize)
unsigned & estimatedBitrate()
HashTable::Iterator * fIter
Iterator(RTPTransmissionStatsDB &receptionStatsDB)
RTPTransmissionStats * next()
RTPTransmissionStats * lookup(u_int32_t SSRC) const
unsigned numReceivers() const
RTPTransmissionStatsDB(RTPSink &rtpSink)
void add(u_int32_t SSRC, RTPTransmissionStats *stats)
virtual ~RTPTransmissionStatsDB()
void noteIncomingRR(u_int32_t SSRC, struct sockaddr_storage const &lastFromAddress, unsigned lossStats, unsigned lastPacketNumReceived, unsigned jitter, unsigned lastSRTime, unsigned diffSR_RRTime)
void removeRecord(u_int32_t SSRC)
virtual ~RTPTransmissionStats()
struct sockaddr_storage fLastFromAddress
unsigned totNumPacketsLost() const
unsigned fFirstPacketNumReported
struct timeval const & timeCreated() const
RTPTransmissionStats(RTPSink &rtpSink, u_int32_t SSRC)
unsigned fOldTotNumPacketsLost
u_int32_t fTotalPacketCount_lo
u_int32_t fTotalOctetCount_hi
void getTotalOctetCount(u_int32_t &hi, u_int32_t &lo)
unsigned fOldLastPacketNumReceived
u_int32_t fLastOctetCount
unsigned fLastPacketNumReceived
unsigned packetsReceivedSinceLastRR() const
struct timeval fTimeCreated fTimeReceived
unsigned lastPacketNumReceived() const
struct sockaddr_storage const & lastFromAddress() const
int packetsLostBetweenRR() const
unsigned lastSRTime() const
struct timeval const & lastTimeReceived() const
u_int32_t fTotalPacketCount_hi
u_int32_t fLastPacketCount
void noteIncomingRR(struct sockaddr_storage const &lastFromAddress, unsigned lossStats, unsigned lastPacketNumReceived, unsigned jitter, unsigned lastSRTime, unsigned diffSR_RRTime)
unsigned roundTripDelay() const
void getTotalPacketCount(u_int32_t &hi, u_int32_t &lo)
unsigned firstPacketNumReported() const
u_int32_t fTotalOctetCount_lo
u_int8_t packetLossRatio() const
unsigned diffSR_RRTime() const
unsigned fTotNumPacketsLost
Boolean fAtLeastTwoRRsHaveBeenReceived
u_int8_t fPacketLossRatio