Stupid winsock needs special way to close sockets.
[dftpd.git] / DataBufferFile.hpp
blob404e0747ab04d96540b41d7221d1dd1bebb53e6b
1 #ifndef __DFTPD__DATABUFFERFILE_HPP__
2 #define __DFTPD__DATABUFFERFILE_HPP__
4 #include <stdio.h>
5 #include "DataBuffer.hpp"
7 class DataBufferFile : public DataBuffer
9 public:
10 DataBufferFile( FILE* f, int secondaryBufferSize );
11 ~DataBufferFile();
13 int Read( void* ptr, int size );
14 int Write( void* ptr, int size );
15 void Store( void* ptr, int size );
17 private:
18 FILE* m_file;
20 char* m_secBuf;
21 int m_secBufSize;
24 #endif