mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 05:38:51 -04:00
* Enabled saving of data rate limits.
* Fixed Lost certificates issue(!) * Tweaked Tick rate parameters. * Added new chatAvailable interface fn. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@469 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a8386b454c
commit
12d3606ad4
9 changed files with 64 additions and 10 deletions
|
@ -26,6 +26,10 @@
|
|||
#include "pqi/pqi.h"
|
||||
#include "pqi/pqiloopback.h"
|
||||
|
||||
/***
|
||||
#define LOOPBACK_DEBUG 1
|
||||
***/
|
||||
|
||||
pqiloopback::pqiloopback(std::string id)
|
||||
:PQInterface(id)
|
||||
{
|
||||
|
@ -44,6 +48,13 @@ pqiloopback::~pqiloopback()
|
|||
|
||||
int pqiloopback::SendItem(RsItem *i)
|
||||
{
|
||||
|
||||
#ifdef LOOPBACK_DEBUG
|
||||
std::cerr << "pqiloopback::SendItem()";
|
||||
std::cerr << std::endl;
|
||||
i->print(std::cerr);
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
objs.push_back(i);
|
||||
return 1;
|
||||
}
|
||||
|
@ -54,6 +65,12 @@ RsItem * pqiloopback::GetItem()
|
|||
{
|
||||
RsItem *pqi = objs.front();
|
||||
objs.pop_front();
|
||||
#ifdef LOOPBACK_DEBUG
|
||||
std::cerr << "pqiloopback::GetItem()";
|
||||
std::cerr << std::endl;
|
||||
pqi->print(std::cerr);
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
return pqi;
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue