IAX2MiniFrame Class Reference

#include <frame.h>

Inheritance diagram for IAX2MiniFrame:

IAX2Frame List of all members.

Public Member Functions

 IAX2MiniFrame (const IAX2Frame &srcFrame)
 IAX2MiniFrame (IAX2EndPoint &_endpoint)
 IAX2MiniFrame (IAX2Processor *con, PBYTEArray &sound, PBoolean isAudio, DWORD usersTimeStamp=0)
virtual ~IAX2MiniFrame ()
virtual PBoolean ProcessNetworkPacket ()
virtual PBoolean WriteHeader ()
virtual void PrintOn (ostream &strm) const
virtual BYTE * GetMediaDataPointer ()
virtual PINDEX GetMediaDataSize ()
void AlterTimeStamp (PINDEX newValue)
virtual void InitialiseHeader (IAX2Processor *processor)
virtual PINDEX GetEncryptionOffset ()

Protected Member Functions

void ZeroAllValues ()

Detailed Description

Class to manage a mini frame, which is sent unreliable to the remote endpoint


Constructor & Destructor Documentation

IAX2MiniFrame::IAX2MiniFrame ( const IAX2Frame srcFrame  ) 

Construction from a supplied dataframe. In this case, this class is filled from an incoming data packet

IAX2MiniFrame::IAX2MiniFrame ( IAX2EndPoint _endpoint  ) 

Construction from an endpoint, to create an empty frame.

IAX2MiniFrame::IAX2MiniFrame ( IAX2Processor con,
PBYTEArray &  sound,
PBoolean  isAudio,
DWORD  usersTimeStamp = 0 
)

Construction from an encoded audio array (stored in a PBYTEArray), in preparation to sending to remote node. The constructor will not delete the supplied PBYTEArray structure.

TimeStamp will be calculated from time since call started, if the users timestamp is 0. If the users timeStamp is non zero, the frames timestamp will be this.

virtual IAX2MiniFrame::~IAX2MiniFrame (  )  [virtual]

Destructor


Member Function Documentation

virtual PBoolean IAX2MiniFrame::ProcessNetworkPacket (  )  [virtual]

Process the incoming frame some more, but process it as this frame type demands

Reimplemented from IAX2Frame.

virtual PBoolean IAX2MiniFrame::WriteHeader (  )  [virtual]

Write the header to the internal data area

Reimplemented from IAX2Frame.

virtual void IAX2MiniFrame::PrintOn ( ostream &  strm  )  const [virtual]

Pretty print this frame data to the designated stream

Reimplemented from IAX2Frame.

virtual BYTE* IAX2MiniFrame::GetMediaDataPointer (  )  [virtual]

Pointer to the beginning of the media (after the header) in this packet

Reimplemented from IAX2Frame.

virtual PINDEX IAX2MiniFrame::GetMediaDataSize (  )  [virtual]

Number of bytes in the media section of this packet.

Reimplemented from IAX2Frame.

void IAX2MiniFrame::AlterTimeStamp ( PINDEX  newValue  ) 

Fix the timestamp in this class, after being shrunk in the MiniFrames

virtual void IAX2MiniFrame::InitialiseHeader ( IAX2Processor processor  )  [virtual]

Given the supplied Connection class, write the first 12 bytes of the frame. This method is called by the frame constructors, in preparation for transmission. This method is never called when processing a received frame.

Whenever a frame is transmitted, this method will be called.

Reimplemented from IAX2Frame.

virtual PINDEX IAX2MiniFrame::GetEncryptionOffset (  )  [virtual]

Get the offset to the beginning of the encrypted region

Reimplemented from IAX2Frame.

void IAX2MiniFrame::ZeroAllValues (  )  [protected]

Initialise valus in this class to some preset value

Reimplemented from IAX2Frame.


The documentation for this class was generated from the following file:
Generated on Mon Sep 15 11:49:37 2008 for OPAL by  doxygen 1.5.1