class RtpTransmitter

Data structure for RTP Transmitter

Public Fields

RtpTransmitterError transmitterError
transmitter error code;

Public Methods

void constructRtpTransmitter(RtpPayloadType apiFormat, RtpPayloadType networkFormat)
consturctor init (don't call this function)
RtpPacket* createPacket(int npadSize = 0, int csrc_count = 0)
Creates a packet with transmitter's payload type and SRC number
int getApiPktSampleSize()
int getNetworkPktSampleSize()
int getPacketSent()
int getPayloadSent()
int getPort()
Port this stack is sending its singal
RtpTime getPrevRtpTime()
NetworkAddress* getRemoteAddr()
int getSocketFD()
Socket File Descriptor used for select()
RtpSrc getSSRC()
UdpStack* getUdpStack()
get ptr of my UdpStack
RtpTransmitter(const char* remoteHost, int remotePort = 5000, RtpPayloadType apiFormat = rtpPayloadPCMU, RtpPayloadType networkFormat = rtpPayloadPCMU, RtpReceiver* receiver = 0)
construtor using specified port
RtpTransmitter(const char* remoteHost, int remoteMinPort, int remoteMaxPort, RtpPayloadType apiFormat = rtpPayloadPCMU, RtpPayloadType networkFormat = rtpPayloadPCMU, RtpReceiver* receivePort = 0)
constructor using port range
void setApiFormat(RtpPayloadType type, int no_samples, RtpPacket* p = NULL, bool print = true)
void setApiPktSize(int size)
void setNetworkFormat(RtpPayloadType type, int no_samples, RtpPacket* p = NULL, bool print = true)
void setNetworkPktSize(int size)
void setRemoteAddr(const NetworkAddress& theAddr)
int transmit(RtpPacket* packet, bool eventFlag = false)
int transmitRaw(char* buffer, int data_len)
~RtpTransmitter()

Private Fields

int api_pktSampleSize
number of samples per RTP packet on api (typical 160 or 240)
RtpPayloadType apiFormat
format of payload for stack
int apiFormat_bitRate
payload specific sample rate
int apiFormat_payloadSize
payload sizes
int apiFormat_perSampleSize
number of bytes per sample (typical 1 or 2, used for endian conversion)
bool freeStack
UdpStack* myStack
my UDP stack
static const int OUT_BUFFER_SIZE
outgoing buffer size, including RTP header
char outBuff[8192]
buffer outgoing rtp pkt to network
int packetSent
numbers of packet sent
int payloadSent
total bytes of payload sent
NtpTime prevNtpTime
NTP time of previous packet
RtpTime prevRtpTime
RTP time of previous packet
RtpSeqNumber prevSequence
previous packet's sequence
friend class RtcpReceiver
allow RTCP stack to probe for information
friend class RtcpTransmitter
allow RTCP stack to probe for information
NtpTime seedNtpTime
inital NTP time
RtpTime seedRtpTime
inital RTP time
RtpSrc ssrc
local SRC number

Documentation

Data structure for RTP Transmitter
RtpTransmitter(const char* remoteHost, int remoteMinPort, int remoteMaxPort, RtpPayloadType apiFormat = rtpPayloadPCMU, RtpPayloadType networkFormat = rtpPayloadPCMU, RtpReceiver* receivePort = 0)
constructor using port range

RtpTransmitter(const char* remoteHost, int remotePort = 5000, RtpPayloadType apiFormat = rtpPayloadPCMU, RtpPayloadType networkFormat = rtpPayloadPCMU, RtpReceiver* receiver = 0)
construtor using specified port

void constructRtpTransmitter(RtpPayloadType apiFormat, RtpPayloadType networkFormat)
consturctor init (don't call this function)

~RtpTransmitter()

RtpPacket* createPacket(int npadSize = 0, int csrc_count = 0)
Creates a packet with transmitter's payload type and SRC number

int transmit(RtpPacket* packet, bool eventFlag = false)

int transmitRaw(char* buffer, int data_len)

RtpSrc getSSRC()

int getPacketSent()

int getPayloadSent()

RtpTime getPrevRtpTime()

void setApiFormat(RtpPayloadType type, int no_samples, RtpPacket* p = NULL, bool print = true)

int getApiPktSampleSize()

void setApiPktSize(int size)

void setNetworkFormat(RtpPayloadType type, int no_samples, RtpPacket* p = NULL, bool print = true)

int getNetworkPktSampleSize()

void setNetworkPktSize(int size)

int getPort()
Port this stack is sending its singal

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

RtpTransmitterError transmitterError
transmitter error code;

UdpStack* getUdpStack()
get ptr of my UdpStack

NetworkAddress* getRemoteAddr()

void setRemoteAddr(const NetworkAddress& theAddr)

static const int OUT_BUFFER_SIZE
outgoing buffer size, including RTP header

RtpSrc ssrc
local SRC number

NtpTime seedNtpTime
inital NTP time

RtpTime seedRtpTime
inital RTP time

RtpTime prevRtpTime
RTP time of previous packet

NtpTime prevNtpTime
NTP time of previous packet

RtpSeqNumber prevSequence
previous packet's sequence

int packetSent
numbers of packet sent

int payloadSent
total bytes of payload sent

friend class RtcpTransmitter
allow RTCP stack to probe for information

friend class RtcpReceiver
allow RTCP stack to probe for information

RtpPayloadType apiFormat
format of payload for stack

int api_pktSampleSize
number of samples per RTP packet on api (typical 160 or 240)

int apiFormat_perSampleSize
number of bytes per sample (typical 1 or 2, used for endian conversion)

int apiFormat_bitRate
payload specific sample rate

int apiFormat_payloadSize
payload sizes

UdpStack* myStack
my UDP stack

bool freeStack

char outBuff[8192]
buffer outgoing rtp pkt to network


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++