VR-Forces 4.6.1 Class Documentation
 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 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)