Stupid winsock needs special way to close sockets.
[dftpd.git] / DataBuffer.hpp
bloba2246f57dd443949e9a09de91c6cf711aebdaf27
1 #ifndef __DFTPD__DATABUFFER_HPP__
2 #define __DFTPD__DATABUFFER_HPP__
4 #include <boost/shared_ptr.hpp>
6 class DataBuffer
8 public:
9 enum Mode
11 M_READ,
12 M_WRITE
15 virtual ~DataBuffer() {}
16 virtual int Read( void* ptr, int size ) { throw "Read not supported"; }
17 virtual int Write( void* ptr, int size ) { throw "Write not supported"; }
18 virtual void Store( void* ptr, int size ) { throw "Store not supported"; }
20 protected:
21 DataBuffer() {}
24 typedef boost::shared_ptr<DataBuffer> DataBufferPtr;
26 #endif