RTP Audio System  2.0.0
MediaServent Class Reference
Inheritance diagram for MediaServent:
Thread Synchronizable AlphaServent

List of all members.

Public Member Functions

 MediaServent (AbstractMediaServer *server, const String &identifier, SocketAddress *peerAddress, const integer communicationDomain=Socket::IP, const integer socketType=Socket::UDP, const integer socketProtocol=Socket::Default, const SocketAddress **localAddressArray=NULL, const cardinal localAddresses=0)
 ~MediaServent ()
ServentQueueErrors queueRequest (AbstractMediaServentRequest *request)
void updateReport (const MediaServentLayerReport &report, const cardinal layer)
void shutdown (const ShutdownReason reason)
const String getIdentifier () const
void setTimeout (const card64 timeout)
card64 getTimeout () const
void updateTimeStamp (const card64 timeStamp=getMicroTime())
bool hasTimedOut (const card64 now=getMicroTime()) const
virtual bool transmissionErrorOccured ()=0

Protected Member Functions

virtual void handleRequest (AbstractMediaServentRequest *request)=0
void run ()

Protected Attributes

AbstractMediaServerServer
String Identifier
MessageQueue
< AbstractMediaServentRequest
Queue
card64 TimeStamp
card64 Timeout
MediaServentReport Report
ShutdownReason ShutdownStatus
Socket SenderSocket
InternetFlow Flow
card16 LastSequenceNumber
card16 PosChgSeqNumber
bool UserLimitPause
bool ManagerLimitPause
bool ClientPause

Constructor & Destructor Documentation

MediaServent::MediaServent ( AbstractMediaServer server,
const String identifier,
SocketAddress peerAddress,
const integer  communicationDomain = Socket::IP,
const integer  socketType = Socket::UDP,
const integer  socketProtocol = Socket::Default,
const SocketAddress **  localAddressArray = NULL,
const cardinal  localAddresses = 0 
)

Member Function Documentation

const String MediaServent::getIdentifier ( ) const [inline]
card64 MediaServent::getTimeout ( ) const [inline]
virtual void MediaServent::handleRequest ( AbstractMediaServentRequest request) [protected, pure virtual]

Implemented in AlphaServent.

bool MediaServent::hasTimedOut ( const card64  now = getMicroTime()) const [inline]
void MediaServent::run ( ) [protected, virtual]

The virtual run() method, which contains the thread's implementation. It has to be implemented by classes, which inherit Thread.

Implements Thread.

void MediaServent::setTimeout ( const card64  timeout) [inline]
void MediaServent::shutdown ( const ShutdownReason  reason)
virtual bool MediaServent::transmissionErrorOccured ( ) [pure virtual]

Implemented in AlphaServent.

void MediaServent::updateReport ( const MediaServentLayerReport report,
const cardinal  layer 
)
void MediaServent::updateTimeStamp ( const card64  timeStamp = getMicroTime()) [inline]

Member Data Documentation

bool MediaServent::ClientPause [protected]
bool MediaServent::UserLimitPause [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines