VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
compressedFileTransporter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: compressedFileTransport.h,v $ $Revision: 1.11 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtCompressedFileTransporter_H_
13 #define DtCompressedFileTransporter_H_
14 
15 #include <vlutil/vlInetFileTransport.h>
16 
19 #include <map>
20 
21 typedef std::pair <int, DtInetFileTransportObject*> FileObject_Pair;
22 
23 #include "vrfutil/vrfutilDefines.h"
25 {
26 public:
27 
36  int port = 3000,
37  bool findFirstAvailable = false,
38  int portRangeToTry = 100,
39  int compressionLevel = 9);
40 
42  virtual ~DtCompressedFileTransporter();
43 
44 protected:
47  virtual void receiveFile(DtInetTcpSocket* sock);
48 
54  virtual bool readFileToBuffer(std::ifstream& inFile,
55  std::vector<char>& fileBuffer, int fileLengthInBytes, int& retBufLen,
56  DtInetFileTransportFlags& flags);
57 
59  virtual void finishFile(DtInetFileTransportObject& object);
60 
61 private:
64 
65 protected:
67 };
68 
69 #endif
70 
71 
int myCompressionLevel
Definition: compressedFileTransporter.h:66
char int int compressionLevel
Definition: lz4hc.h:210
std::pair< int, DtInetFileTransportObject * > FileObject_Pair
Use STL map object to map from unique file identifier to object buffer to keep track of how much of a...
Definition: compressedFileTransporter.h:21
Definition: compressedFileTransporter.h:24
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)