message_search.h

00001 #ifndef _DHT_KADC_MESSAGE_SEARCH_H_
00002 #define _DHT_KADC_MESSAGE_SEARCH_H_
00003 
00004 #include "../key.h"
00005 #include "../value.h"
00006 
00007 #include "message.h"
00008 
00009 namespace dht {
00010 namespace kadc {
00011     class message_search : public message {
00012         key     *_skey;   // search key
00013         value   *_rvalue; // result value
00014 
00015     public:
00016         message_search(task *f, int type) : message(f, type)
00017         {
00018             _skey   = NULL;
00019             _rvalue = NULL;
00020         }
00021 
00022         virtual ~message_search();
00023 
00024         inline const key  *search_key() const { return _skey; }
00025         inline void        search_key(key *k) { _skey = k; }
00026 
00027         inline const value *result_value() const   { return _rvalue; }
00028         inline void         result_value(value *v) { _rvalue = v; }
00029     };      
00030 } // ns kadc
00031 } // ns dht
00032 
00033 #endif //_DHT_KADC_MESSAGE_SEARCH_H_

Generated on Thu Mar 1 16:18:47 2007 for libdht by  doxygen 1.5.1