mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -04:00
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:
parent
39d8b258ab
commit
100a7aea82
3 changed files with 47 additions and 27 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue