libmoost
|
00001 /* vim:set ts=3 sw=3 sts=3 et: */ 00028 00029 00030 00031 00032 00033 #ifndef MOOST_KVSTORE_CONNECTION_H 00034 #define MOOST_KVSTORE_CONNECTION_H 00035 00036 #include <string> 00037 00038 namespace moost { namespace kvstore { 00039 00040 class IConnection 00041 { 00042 public: 00043 virtual ~IConnection() { } 00044 virtual void open(const std::string& host, int port, int timeoutMs) = 0; 00045 virtual void close() = 0; 00046 }; 00047 00048 }} // end namespace 00049 00050 #endif