Main Page | Class Hierarchy | Class List | File List | Class Members

Participant Class Reference

#include <participant.h>

Inheritance diagram for Participant:

Inheritance graph
[legend]
Collaboration diagram for Participant:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Participant (Manager &_mgr, PSafePtr< Member > member)
 ~Participant ()
virtual void PrintOn (ostream &strm) const
void ReadAndMixAudio (BYTE *ptr, PINDEX amount)
PString GetMemberId ()
void MemberHasEnded (PString deadMember)

Protected Attributes

Managermanager
PINDEX currentReadIndex
MembermemberPtr
PString memberId

Detailed Description

A class that maintains a link to another entity in a conference room.

Holds a link to another member in the current conference room. This class is responsible also for knowing where we are reading from in the other members audio buffer.

Note that only one person actually uses this class, and that is the AudioRead thread which transfers audio from the Member to the network socket inside MediaConnection.


Constructor & Destructor Documentation

Participant::Participant Manager _mgr,
PSafePtr< Member member
 

Constructor, which creates this member, who has link to the manger and knows the conference we are a part of

Participant::~Participant  ) 
 

Destructor


Member Function Documentation

PString Participant::GetMemberId  ) 
 

Get the id used by the Member class that this Participant looks after

void Participant::MemberHasEnded PString  deadMember  ) 
 

Tell the remote me we are connected that "deadMember" is to be removed

void Participant::PrintOn ostream &  strm  )  const [virtual]
 

pretty print information in this class

Parameters:
strm  Stream to output text representation

void Participant::ReadAndMixAudio BYTE *  ptr,
PINDEX  amount
 

This method is used to to multiplex together the audio from each of the other Members in this conference room.

Suppose there are five Members in this conference. (A,B,C,D,E). Member A will call this method for Members B,C,D,E.

Similarily, Member E will call this method for Members A,B,C,D


Member Data Documentation

PINDEX Participant::currentReadIndex [protected]
 

Current read position in the buffer.

Manager& Participant::manager [protected]
 

link to the manager, who knows everything about everything

PString Participant::memberId [protected]
 

The id of the member we link to

Member* Participant::memberPtr [protected]
 

The remote member that we are connected to


The documentation for this class was generated from the following files:
Generated on Sun Jan 29 19:49:38 2006 for Sofa Switch Multipoint Conf. Utility by  doxygen 1.4.4