#include <ConnectionFactory.h>
Collaboration diagram for ConnectionFactory:
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? | |
ConnectionWrap * | ConnectionFactory::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) |
BufferedFile * | acceptAndGetFile (int fdin) |
Private Attributes | |
int | inputfd |
int | outputfd |
int | filterfd |
int | configfd |
BufferedFile * | inputBF |
BufferedFile * | outputBF |
BufferedFile * | filterBF |
BufferedFile * | configBF |
BufferedFileFactory * | bf |
|
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(). |
|
Constructor, creates a ConnectionFactory using a BufferedFileFactory and the inputPort, outputPort, filterPort, configPort.
Definition at line 15 of file ConnectionFactory.C. References init(). |
|
Destructor.
Definition at line 265 of file ConnectionFactory.C. References BufferedFile::Close(), configBF, filterBF, inputBF, and outputBF. |
|
Definition at line 77 of file ConnectionFactory.C. References bf, and BufferedFileFactory::getNewBufferedFile(). |
|
Get the new connection and put it in a ConnectionWrap.
|
|
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(). |
|
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(). |
|
Definition at line 61 of file ConnectionFactory.h. Referenced by acceptAndGetFile(), and init(). |
|
Definition at line 60 of file ConnectionFactory.h. Referenced by init(), isThereANewConnection(), and ~ConnectionFactory(). |
|
Definition at line 56 of file ConnectionFactory.h. Referenced by init(). |
|
Definition at line 59 of file ConnectionFactory.h. Referenced by init(), isThereANewConnection(), and ~ConnectionFactory(). |
|
Definition at line 55 of file ConnectionFactory.h. Referenced by init(). |
|
Definition at line 57 of file ConnectionFactory.h. Referenced by init(), isThereANewConnection(), and ~ConnectionFactory(). |
|
Definition at line 53 of file ConnectionFactory.h. Referenced by init(). |
|
Definition at line 58 of file ConnectionFactory.h. Referenced by init(), isThereANewConnection(), and ~ConnectionFactory(). |
|
Definition at line 54 of file ConnectionFactory.h. Referenced by init(). |