00001 #ifndef _DHT_KADC_UTIL_H_
00002 #define _DHT_KADC_UTIL_H_
00003
00004 #include <string>
00005
00006 #include "../name_value_map.h"
00007 #include "../value.h"
00008 #include "client.h"
00009
00010 namespace dht {
00011 namespace kadc {
00012 namespace util {
00013
00014 void kadc_hash(std::string *result, const void *data, int len, bool do_md4);
00015 void kadc_meta(std::string *result, const name_value_map &meta);
00016 void kadc_result(value *v, KadCdictionary *pkd);
00017 void kadc_free_search_result(void *resdictrbt);
00018 void kadc_external_address(addr_inet_type *result, KadCcontext *pkcc);
00019
00020 }
00021 }
00022 }
00023
00024 #endif //_DHT_KADC_UTIL_H_