VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtCompressedFileTransporter Class Reference
Inheritance diagram for DtCompressedFileTransporter:
Inheritance graph
[legend]

Public Member Functions

 DtCompressedFileTransporter (int port=3000, bool findFirstAvailable=false, int portRangeToTry=100, int compressionLevel=9)
 Constructor. More...
 
virtual ~DtCompressedFileTransporter ()
 Destructor. More...
 

Protected Member Functions

virtual void receiveFile (DtInetTcpSocket *sock)
 Override to clean up sockets after the file is received. More...
 
virtual bool readFileToBuffer (std::ifstream &inFile, std::vector< char > &fileBuffer, int fileLengthInBytes, int &retBufLen, DtInetFileTransportFlags &flags)
 Reads the file into the specified buffer. More...
 
virtual void finishFile (DtInetFileTransportObject &object)
 Finishes the specified file by decompressing file (if needed) More...
 

Protected Attributes

int myCompressionLevel
 

Private Member Functions

 DtCompressedFileTransporter (const DtCompressedFileTransporter &)
 
DtCompressedFileTransporteroperator= (const DtCompressedFileTransporter &)
 

Constructor & Destructor Documentation

DtCompressedFileTransporter::DtCompressedFileTransporter ( int  port = 3000,
bool  findFirstAvailable = false,
int  portRangeToTry = 100,
int  compressionLevel = 9 
)

Constructor.

Accepts incoming data from the given port. Set findFirstAvailable to true when you want the listener to try to find the next free port if the given port is already in use. If the sugested port is not free, and fidFirstAvailable is set to true, DtFileTransporter will try the next portRangeToTry ports. On success status returns the port which was opened for reading. On failure status returns a negitive value.

virtual DtCompressedFileTransporter::~DtCompressedFileTransporter ( )
virtual

Destructor.

DtCompressedFileTransporter::DtCompressedFileTransporter ( const DtCompressedFileTransporter )
private

Member Function Documentation

virtual void DtCompressedFileTransporter::receiveFile ( DtInetTcpSocket *  sock)
protectedvirtual

Override to clean up sockets after the file is received.

Fix for bug in VRF 3.13.1

virtual bool DtCompressedFileTransporter::readFileToBuffer ( std::ifstream &  inFile,
std::vector< char > &  fileBuffer,
int  fileLengthInBytes,
int retBufLen,
DtInetFileTransportFlags &  flags 
)
protectedvirtual

Reads the file into the specified buffer.

Compresses the buffer and places the result in the supplied file buffer.

If compression is successful, flags will be modified to contain compressed flag

virtual void DtCompressedFileTransporter::finishFile ( DtInetFileTransportObject &  object)
protectedvirtual

Finishes the specified file by decompressing file (if needed)

DtCompressedFileTransporter& DtCompressedFileTransporter::operator= ( const DtCompressedFileTransporter )
private

Member Data Documentation

int DtCompressedFileTransporter::myCompressionLevel
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)