// this is the extent server #ifndef extent_server_h #define extent_server_h #include #include #include "extent_protocol.h" using namespace std; class extent_server { public: extent_server(); // You must store file attributes in this map std::map attrmap; // You may store file contents in this map std::map contmap; int put(extent_protocol::extentid_t id, std::string, int &); int get(extent_protocol::extentid_t id, std::string &); int getattr(extent_protocol::extentid_t id, extent_protocol::attr &); int remove(extent_protocol::extentid_t id, int &); }; #endif