Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MDFSTCPServerBase.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------------------
00002 #ifndef mdfstcpserverbaseH
00003 #define mdfstcpserverbaseH
00004 
00005 #include <string>
00006 #include <vector>
00007 #include "MDistributedFileSystem.h"
00008 
00009 namespace mdfs {
00010 
00011 //#pragma pack(push, 4)
00012 // To avoid a CodeGuard error
00013 
00014 //---------------------------------------------------------------------------
00015 class MDFSTCPServerBase  {
00016 
00017 public:
00018 
00019    MDistributedFS*            DFS;
00020    std::string                Name;
00021    std::vector<std::string>   Hosts;
00022    int                        Port;
00023 
00024    MDFSTCPServerBase(MDistributedFS* dfs, int port=5050) : DFS(dfs), Port(port) {}
00025    virtual ~MDFSTCPServerBase() {}
00026 
00027    virtual void Listen() = 0;
00028    virtual void Read() = 0;
00029 
00030 private:
00031 
00032 
00033    };
00034 //#pragma pack(pop)
00035 
00036 //---------------------------------------------------------------------------
00037 
00038 } // namespace
00039 
00040 #endif



MDFS SourceForge project page and download

SourceForge.net Logo

Generated on Sat Jan 3 03:14:20 2004 for MDFS by doxygen1.3.5