class RtcpReceiver

Class to transmit RTCP packets

Public Methods

void addSDESItem(RtpSrc src, RtcpSDESItem* item)
RtpTranInfo* addTranInfo(RtpSrc src, RtpReceiver* recv = NULL)
Adds receiver to source listing
void constructRtcpReceiver()
consturctor init (don't call this function)
RtcpHeader* findRTCP(RtcpPacket* packet, RtcpType type)
searches inside packet for given type
RtpTranInfo* findTranInfo(RtpSrc src)
Finds pointer to source structure Creates source struture if not found
int getAvgOneWayDelay()
get the data for latency
RtcpPacket* getPacket()
Receives an incoming RTCP packet
int getPort()
Port this receiver is receiving it signal
int getSocketFD()
Socket File Descriptor used for select()
int getTranInfoCount()
Number of known sources
RtpTranInfo* getTranInfoList(int index)
Access specified souurce infomration
UdpStack* getUdpStack()
get the ptr of my UdpStack
int isValid(RtcpPacket* packet)
Checks if an RTCP packet is valid
void printRR(RtcpReport* p)
void printSR(RtcpSender* p)
void readAPP(RtcpHeader* head)
int readAPP(RtcpPacket* packet)
int readBYE(RtcpHeader* head)
int readBYE(RtcpPacket* packet)
int readRTCP(RtcpPacket* packet)
reads compound RtcpPacket and calls apporiate read function
void readSDES(RtcpHeader* head)
int readSDES(RtcpPacket* packet)
int readSR(RtcpPacket* packet)
These functions will search inside packet for apporiate type
void readSR(RtcpHeader* head)
These functions will search inside packet for apporiate type Thses functions will read packet and store packet information
int removeTranInfo(RtpSrc src, int flag = 0)
Remove receiver from source listing
RtcpReceiver(UdpStack * udp)
Constructor, using udp stack ptr *
RtcpReceiver(int localMinPort, int localMaxPort)
Constructor creating incoming RTCP stack using port ranges
RtcpReceiver(int localPort)
Constructor creating incoming RTCP stack using specified port
~RtcpReceiver()

Private Fields

int accumOneWayDelay
int accumRoundTripDelay
bool freeStack
UdpStack* myStack
my UDP stack
int packetReceived
map < RtpSrc, RtpTranInfo* > tranInfoList
list of known sources

Documentation

Class to transmit RTCP packets
RtcpReceiver(int localMinPort, int localMaxPort)
Constructor creating incoming RTCP stack using port ranges
Parameters:
port - associated port

RtcpReceiver(int localPort)
Constructor creating incoming RTCP stack using specified port
Parameters:
port - associated port

RtcpReceiver(UdpStack * udp)
Constructor, using udp stack ptr *

void constructRtcpReceiver()
consturctor init (don't call this function)

~RtcpReceiver()

RtcpPacket* getPacket()
Receives an incoming RTCP packet
Returns:
: NULL no data recprocess

int isValid(RtcpPacket* packet)
Checks if an RTCP packet is valid
Returns:
0 not valid, 1 valid

int readRTCP(RtcpPacket* packet)
reads compound RtcpPacket and calls apporiate read function

RtcpHeader* findRTCP(RtcpPacket* packet, RtcpType type)
searches inside packet for given type
Returns:
NULL means type not found, else ptr to first found

int readSR(RtcpPacket* packet)
These functions will search inside packet for apporiate type
Returns:
-1 if type not found. Otherwise will call related function to use packet and return 0.

int readSDES(RtcpPacket* packet)

int readBYE(RtcpPacket* packet)

int readAPP(RtcpPacket* packet)

void readSR(RtcpHeader* head)
These functions will search inside packet for apporiate type Thses functions will read packet and store packet information. Same result as calling, ie readSR(findRTCP(p, RtcpTypeSR))

void readSDES(RtcpHeader* head)

int readBYE(RtcpHeader* head)

void readAPP(RtcpHeader* head)

void printSR(RtcpSender* p)

void printRR(RtcpReport* p)

void addSDESItem(RtpSrc src, RtcpSDESItem* item)

RtpTranInfo* addTranInfo(RtpSrc src, RtpReceiver* recv = NULL)
Adds receiver to source listing

int removeTranInfo(RtpSrc src, int flag = 0)
Remove receiver from source listing
Returns:
0 sucess, 1 not found

RtpTranInfo* findTranInfo(RtpSrc src)
Finds pointer to source structure Creates source struture if not found
Returns:
pointer to source structure

RtpTranInfo* getTranInfoList(int index)
Access specified souurce infomration

int getTranInfoCount()
Number of known sources

int getPort()
Port this receiver is receiving it signal

int getSocketFD()
Socket File Descriptor used for select()

UdpStack* getUdpStack()
get the ptr of my UdpStack

int getAvgOneWayDelay()
get the data for latency

map < RtpSrc, RtpTranInfo* > tranInfoList
list of known sources

UdpStack* myStack
my UDP stack

bool freeStack

int packetReceived

int accumOneWayDelay

int accumRoundTripDelay


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++