Changed DHT string output to use std::ostringstream, as snprintf wasn't working

with inet_ntoa.... also added some other debug and fixed notifytxt.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@353 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-02-25 21:39:08 +00:00
parent 39d8b258ab
commit 100a7aea82
3 changed files with 47 additions and 27 deletions

View file

@ -230,6 +230,10 @@ bool OpenDHTClient::dhtActive()
bool OpenDHTClient::publishKey(std::string key, std::string value, uint32_t ttl)
{
/* create request */
#ifdef OPENDHT_DEBUG
std::cerr << "OpenDHTClient::openDHT_publishKey() key: " << key << " value: " << value;
std::cerr << std::endl;
#endif
std::string putmsg = createOpenDHT_put(key, value, ttl, openDHT_Client);
std::string response;