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

TCPConnectionList Class Reference

#include <main.h>

Inheritance diagram for TCPConnectionList:

Inheritance graph
[legend]
Collaboration diagram for TCPConnectionList:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

TCPConnectionMakeOneTCPConnection ()

Protected Attributes

PSyncPoint checkListContents
PMutex accessMutex
PThread * createNewTCPConnections
BOOL endNow

Detailed Description

A list of all TCPConnection classes, which have been created and are waiting for use. After use in one call, they are deleted.

This class provides a second purpose, to store TCPConnection structure that have been allocated and used in a previous call. In this class these old TCPConnection structures are deleted. We delete them here, rather than inside the MyOpalCall destructor, so that there is no possibility of holding up the MyOpalCall destructor

Access to this list is kept threadsafe by use of a mutex


Member Function Documentation

TCPConnection * TCPConnectionList::MakeOneTCPConnection  )  [protected]
 

General method to build a TCPConnection


Member Data Documentation

PMutex TCPConnectionList::accessMutex [protected]
 

Lock access to the list with this mutex

PSyncPoint TCPConnectionList::checkListContents [protected]
 

On removing a TCPConnection from the list, ping this to get the thread to create more

PThread* TCPConnectionList::createNewTCPConnections [protected]
 

Pointer to the thread that does the creation process

BOOL TCPConnectionList::endNow [protected]
 

Flag to say end the creation process, which kills the createNewTcpconnections thread


The documentation for this class was generated from the following files:
Generated on Sun Jan 29 19:49:43 2006 for SSServer, or Sofa Switch Server by  doxygen 1.4.4