mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -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
|
@ -139,31 +139,6 @@ void NotifyTxt::displaySearch()
|
|||
void NotifyTxt::displayMessages()
|
||||
{
|
||||
iface->lockData(); /* Lock Interface */
|
||||
|
||||
std::ostringstream out;
|
||||
std::cerr << out.str();
|
||||
|
||||
std::list<MessageInfo>::const_iterator it;
|
||||
const std::list<MessageInfo> &msgs = iface->getMessages();
|
||||
|
||||
std::list<FileInfo>::const_iterator fit;
|
||||
int i;
|
||||
|
||||
for(it = msgs.begin(); it != msgs.end(); it++)
|
||||
{
|
||||
out << "Message: ";
|
||||
std::string cnv_title(it->title.begin(), it->title.end());
|
||||
out << cnv_title << std::endl;
|
||||
std::string cnv_msg(it->msg.begin(), it->msg.end());
|
||||
out << "\t" << cnv_msg << std::endl;
|
||||
const std::list<FileInfo> &files = it -> files;
|
||||
for(fit = files.begin(), i = 1; fit != files.end(); fit++, i++)
|
||||
{
|
||||
out << "\t\tFile(" << i << ") " << fit->fname << std::endl;
|
||||
}
|
||||
out << std::endl;
|
||||
}
|
||||
|
||||
iface->unlockData(); /* UnLock Interface */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue