mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -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
|
@ -254,6 +254,8 @@ int RsServer::ConfigSetDataRates( int total, int indiv ) /* in kbrates */
|
|||
pqih -> setMaxIndivRate(true, indiv);
|
||||
pqih -> setMaxIndivRate(false, indiv);
|
||||
|
||||
pqih -> save_config();
|
||||
|
||||
/* unlock Mutexes */
|
||||
iface.unlockData(); /* UNLOCK */
|
||||
unlockRsCore(); /* UNLOCK */
|
||||
|
|
|
@ -78,8 +78,8 @@ void RsServer::run()
|
|||
|
||||
double timeDelta = 0.25;
|
||||
double minTimeDelta = 0.1; // 25;
|
||||
double maxTimeDelta = 1.0;
|
||||
double kickLimit = 0.5;
|
||||
double maxTimeDelta = 0.5;
|
||||
double kickLimit = 0.15;
|
||||
|
||||
double avgTickRate = timeDelta;
|
||||
|
||||
|
|
|
@ -106,6 +106,11 @@ bool p3Msgs::ChatSend(ChatInfo &ci)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool p3Msgs::chatAvailable()
|
||||
{
|
||||
return mChatSrv->receivedItems();
|
||||
}
|
||||
|
||||
bool p3Msgs::getNewChat(std::list<ChatInfo> &chats)
|
||||
{
|
||||
/* get any messages and push them to iface */
|
||||
|
|
|
@ -52,6 +52,7 @@ virtual bool MessageRead(std::string mid);
|
|||
|
||||
/****************************************/
|
||||
/* Chat */
|
||||
virtual bool chatAvailable();
|
||||
virtual bool ChatSend(ChatInfo &ci);
|
||||
virtual bool getNewChat(std::list<ChatInfo> &chats);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue