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

TcpConnectionList Class Reference

#include <main.h>

Inheritance diagram for TcpConnectionList:

[legend]
Collaboration diagram for TcpConnectionList:
[legend]
List of all members.

Protected Member Functions

TcpConnectionMakeOneTcpConnection ()

Protected Attributes

PSyncPoint checkListContents
PMutex accessMutex
PThread * createNewTcpConnections
PMutex mutexNewTcpConnections
BOOL endNow

Detailed Description

A list of instances of the TcpConnection class, which have been prebuilt and are ready to go. The use of this list speeds up the creation of a new connection, and increases the reliability of each connection. After use on one call, the TcpConnection instance is deleted.

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

PMutex TcpConnectionList::mutexNewTcpConnections [protected]
 

Mutex which protects access to the createNewTcpConnections thread pointer


The documentation for this class was generated from the following files:
Generated on Thu Apr 19 00:03:11 2007 for SSServer, or Sofa Switch Server by  doxygen 1.4.4