#include <RtpSender.h>

Public Member Functions | |
| RtpSender (unsigned chans=1) | |
| ~RtpSender () | |
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (Exception) |
| bool | createRtpSession () |
| bool | addRtpDestination (char *remoteIP, unsigned short remotePort) |
| bool | removeRtpDestination () |
| void | printError (int rtperr) |
Protected Attributes | |
| unsigned | mNumChans |
| SynchPthread | mRtpMutex |
| unsigned | mBufferFrames |
| unsigned | mRemotePort |
| The network port I send to. | |
| unsigned | mLocalPort |
| The network port I listen on. | |
| unsigned | mRemoteIP |
| The IP address of the client in host byte order. | |
| unsigned | mLocalIP |
| My IP address in host byte order. | |
| string | mCName |
| The CName of my computer. | |
| string | mEmail |
| My email I want registered with RTP. | |
| int | mLastPacketNumber |
| The RTP ID of the last packet sent (or -1 if none). | |
| int | mPayloadType |
| The RTP payload type we are sending. | |
| RTPUDPv4TransmissionParams * | mTransparams |
| RTPSessionParams * | mSessparams |
| RTPIPv4Address * | mAddress |
| RtpSender::RtpSender | ( | unsigned | chans = 1 |
) |
References createRtpSession(), error(), csl::kLogError, csl::logMsg(), mLastPacketNumber, mPayloadType, mSessparams, and mTransparams.
| RtpSender::~RtpSender | ( | ) |
References mAddress, mSessparams, and mTransparams.
| void RtpSender::nextBuffer | ( | Buffer & | outputBuffer, | |
| unsigned | outBufNum | |||
| ) | throw (Exception) [virtual] |
really compute the next buffer given an offset base channel; this is called by nextBuffer, possibly multiple times
Reimplemented from csl::UnitGenerator.
References csl::Port::mBuffer.
| bool RtpSender::createRtpSession | ( | ) |
References csl::CGestalt::frameRate(), csl::UnitGenerator::mFrameRate, mLocalPort, mSessparams, mTransparams, printError(), and TRUE.
Referenced by RtpSender().
| bool RtpSender::addRtpDestination | ( | char * | remoteIP, | |
| unsigned short | remotePort | |||
| ) |
| bool RtpSender::removeRtpDestination | ( | ) |
References mAddress.
| void RtpSender::printError | ( | int | rtperr | ) |
References csl::kLogError, and csl::logMsg().
Referenced by addRtpDestination(), and createRtpSession().
unsigned csl::RtpSender::mNumChans [protected] |
SynchPthread csl::RtpSender::mRtpMutex [protected] |
unsigned csl::RtpSender::mBufferFrames [protected] |
unsigned csl::RtpSender::mRemotePort [protected] |
unsigned csl::RtpSender::mLocalPort [protected] |
unsigned csl::RtpSender::mRemoteIP [protected] |
unsigned csl::RtpSender::mLocalIP [protected] |
My IP address in host byte order.
string csl::RtpSender::mCName [protected] |
The CName of my computer.
string csl::RtpSender::mEmail [protected] |
My email I want registered with RTP.
int csl::RtpSender::mLastPacketNumber [protected] |
int csl::RtpSender::mPayloadType [protected] |
RTPUDPv4TransmissionParams* csl::RtpSender::mTransparams [protected] |
Referenced by createRtpSession(), RtpSender(), and ~RtpSender().
RTPSessionParams* csl::RtpSender::mSessparams [protected] |
Referenced by createRtpSession(), RtpSender(), and ~RtpSender().
RTPIPv4Address* csl::RtpSender::mAddress [protected] |
Referenced by addRtpDestination(), removeRtpDestination(), and ~RtpSender().
1.5.8