OPAL  Version 3.10.4
IAX2FrameList Class Reference

#include <frame.h>

Inheritance diagram for IAX2FrameList:
IAX2Frame IAX2ActiveFrameList

Public Member Functions

 ~IAX2FrameList ()
void ReportList (PString &answer)
IAX2FrameGetLastFrame ()
void Initialise ()
PBoolean Empty ()
void GrabContents (IAX2FrameList &src)
void DeleteMatchingSendFrame (IAX2FullFrame *reply)
void SendVnakRequestedFrames (IAX2FullFrameProtocol &src)
void AddNewFrame (IAX2Frame *src)
void GetResendFramesDeleteOldFrames (IAX2FrameList &framesToSend)
virtual PINDEX GetSize ()
void MarkAllAsResent ()

Protected Member Functions

virtual PINDEX GetEntries ()

Protected Attributes

PMutex mutex

Detailed Description

A list of all frames waiting for processing

Note please, this class is thread safe.

You do not need to protect acces to this class.


Constructor & Destructor Documentation


Member Function Documentation

Add the frame (supplied as an argument) to the end of this list

Delete the frame that has been sent, which is waiting for this reply. The reply is the argument.

PBoolean IAX2FrameList::Empty ( ) [inline]

True if this frame list is empty

References GetSize().

virtual PINDEX IAX2FrameList::GetEntries ( ) [inline, protected, virtual]

NON Thread safe read of the number of elements on this list.

References GetSize().

Get pointer to last frame in the list. Remove this frame from the list

Get a list of frames to send, and delete the timed out frames

virtual PINDEX IAX2FrameList::GetSize ( ) [inline, virtual]

Thread safe read of the number of elements on this list.

References mutex.

Referenced by Empty(), IAX2EndPoint::EthernetFramesToBeProcessed(), GetEntries(), and IAX2Receiver::GetSize().

Copy to this frame the contents of the frameList pointed to by src

Removing item from list will not automatically delete it

Referenced by IAX2ActiveFrameList::IAX2ActiveFrameList().

Mark every frame on this list as having been resent

void IAX2FrameList::ReportList ( PString &  answer)

Report the frames queued in this list

A Vnak frame has been received (voice not acknowledged) which actually means, retransmit all those frames you have on this particular call number from the oseqno specified in the supplied frame


Field Documentation

PMutex IAX2FrameList::mutex [protected]

Local variable which protects access.

Referenced by GetSize().


The documentation for this class was generated from the following file: