Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ConnectionFactory Class Reference

#include <ConnectionFactory.h>

Collaboration diagram for ConnectionFactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

The ConnectionFactory is used to create connections from client who have connected to ports the connectionFactory is listening to.

Definition at line 28 of file ConnectionFactory.h.

Public Methods

 ConnectionFactory (BufferedFileFactory *bff, int start)
 Constructor, creates a ConnectionFactory using a BufferedFileFactory and start port for inputPort.

 ConnectionFactory (BufferedFileFactory *bff, int inputPort, int outputPort, int filterPort, int configPort)
 Constructor, creates a ConnectionFactory using a BufferedFileFactory and the inputPort, outputPort, filterPort, configPort.

bool isThereANewConnection ()
 Is there a new connection ready?

ConnectionWrapConnectionFactory::processConnection ()
 Get the new connection and put it in a ConnectionWrap.

 ~ConnectionFactory ()
 Destructor.


Private Methods

void init (BufferedFileFactory *bff, int inputPort, int outputPort, int filterPort, int configPort)
BufferedFileacceptAndGetFile (int fdin)

Private Attributes

int inputfd
int outputfd
int filterfd
int configfd
BufferedFileinputBF
BufferedFileoutputBF
BufferedFilefilterBF
BufferedFileconfigBF
BufferedFileFactorybf


Constructor & Destructor Documentation

ConnectionFactory::ConnectionFactory BufferedFileFactory   bff,
int    start
 

Constructor, creates a ConnectionFactory using a BufferedFileFactory and start port for inputPort.

Other ports are after outPort = input+1, filterPort=input+2, configPort = input+3

Definition at line 12 of file ConnectionFactory.C.

References init().

ConnectionFactory::ConnectionFactory BufferedFileFactory   bff,
int    inputPort,
int    outputPort,
int    filterPort,
int    configPort
 

Constructor, creates a ConnectionFactory using a BufferedFileFactory and the inputPort, outputPort, filterPort, configPort.

Definition at line 15 of file ConnectionFactory.C.

References init().

ConnectionFactory::~ConnectionFactory  
 

Destructor.

Definition at line 265 of file ConnectionFactory.C.

References BufferedFile::Close(), configBF, filterBF, inputBF, and outputBF.


Member Function Documentation

BufferedFile * ConnectionFactory::acceptAndGetFile int    fdin [private]
 

Definition at line 77 of file ConnectionFactory.C.

References bf, and BufferedFileFactory::getNewBufferedFile().

ConnectionWrap* ConnectionFactory::ConnectionFactory::processConnection  
 

Get the new connection and put it in a ConnectionWrap.

void ConnectionFactory::init BufferedFileFactory   bff,
int    inputPort,
int    outputPort,
int    filterPort,
int    configPort
[private]
 

Definition at line 205 of file ConnectionFactory.C.

References bf, configBF, configfd, filterBF, filterfd, BufferedFileFactory::getNewBufferedFile(), inputBF, inputfd, outputBF, outputfd, server(), and BufferedFile::setReadOnly().

Referenced by ConnectionFactory().

bool ConnectionFactory::isThereANewConnection  
 

Is there a new connection ready?

Definition at line 19 of file ConnectionFactory.C.

References configBF, filterBF, inputBF, outputBF, and BufferedFile::readReady().

Referenced by main(), and Connector::process().


Member Data Documentation

BufferedFileFactory* ConnectionFactory::bf [private]
 

Definition at line 61 of file ConnectionFactory.h.

Referenced by acceptAndGetFile(), and init().

BufferedFile* ConnectionFactory::configBF [private]
 

Definition at line 60 of file ConnectionFactory.h.

Referenced by init(), isThereANewConnection(), and ~ConnectionFactory().

int ConnectionFactory::configfd [private]
 

Definition at line 56 of file ConnectionFactory.h.

Referenced by init().

BufferedFile* ConnectionFactory::filterBF [private]
 

Definition at line 59 of file ConnectionFactory.h.

Referenced by init(), isThereANewConnection(), and ~ConnectionFactory().

int ConnectionFactory::filterfd [private]
 

Definition at line 55 of file ConnectionFactory.h.

Referenced by init().

BufferedFile* ConnectionFactory::inputBF [private]
 

Definition at line 57 of file ConnectionFactory.h.

Referenced by init(), isThereANewConnection(), and ~ConnectionFactory().

int ConnectionFactory::inputfd [private]
 

Definition at line 53 of file ConnectionFactory.h.

Referenced by init().

BufferedFile* ConnectionFactory::outputBF [private]
 

Definition at line 58 of file ConnectionFactory.h.

Referenced by init(), isThereANewConnection(), and ~ConnectionFactory().

int ConnectionFactory::outputfd [private]
 

Definition at line 54 of file ConnectionFactory.h.

Referenced by init().


The documentation for this class was generated from the following files:
Generated on Tue Dec 17 21:14:38 2002 for AUSS_Connector by doxygen1.2.18