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

NodeRequest Class Reference

#include <xmppbase.h>

List of all members.

Public Member Functions

Construction/Destruction
 NodeRequest ()
 ~NodeRequest ()
General Methods
void AddRequest (PString &newString)
BOOL GetRequest (PString &nextString)

Protected Attributes

PMutex accessMutex
PStringArray data


Detailed Description

A class that contains the list of controller ids who are currently asking for a new node. This list has thread safe access. We did not use the pwlib list, which is quite a bit bigger than is needed here


Constructor & Destructor Documentation

NodeRequest::NodeRequest  ) 
 

Construct NodeRequest class

NodeRequest::~NodeRequest  ) 
 

Destructor


Member Function Documentation

void NodeRequest::AddRequest PString &  newString  ) 
 

Add a new request to the list, in a thread safe fashion.

Parameters:
newString  String to add to the list.

BOOL NodeRequest::GetRequest PString &  nextString  ) 
 

Remove the last request from this list, in a thread safe fashion. Return TRUE if succesfull

Parameters:
nextString  resultant string.


Member Data Documentation

PMutex NodeRequest::accessMutex [protected]
 

Lock on this string array

PStringArray NodeRequest::data [protected]
 

Internal String array


The documentation for this class was generated from the following files:
Generated on Sun Jan 29 19:49:20 2006 for SSVoip, which is Sofa Switch Voip by  doxygen 1.4.4