mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed connections and removed more unused code (Patch from Cyril)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8164 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
042b61ff9e
commit
1b0f59d746
@ -61,8 +61,9 @@ virtual int tick() { return 1; }
|
||||
virtual int status() { return 1; }
|
||||
|
||||
virtual int SendRsRawItem(RsRawItem *) = 0;
|
||||
#ifdef TO_BE_REMOVED
|
||||
virtual RsRawItem *GetRsRawItem() = 0;
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
@ -82,6 +82,7 @@ int pqihandler::tick()
|
||||
moreToTick = 1;
|
||||
}
|
||||
}
|
||||
#ifdef TO_BE_REMOVED
|
||||
// get the items, and queue them correctly
|
||||
if (0 < locked_GetItems())
|
||||
{
|
||||
@ -90,6 +91,7 @@ int pqihandler::tick()
|
||||
#endif
|
||||
moreToTick = 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// static time_t last_print_time = 0 ;
|
||||
@ -318,6 +320,8 @@ int pqihandler::SendRsRawItem(RsRawItem *ns)
|
||||
return queueOutRsItem(ns) ;
|
||||
}
|
||||
|
||||
#ifdef TO_BE_REMOVED
|
||||
|
||||
// inputs. This is a very basic
|
||||
// system that is completely biased and slow...
|
||||
// someone please fix.
|
||||
@ -450,6 +454,7 @@ RsRawItem *pqihandler::GetRsRawItem()
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif
|
||||
|
||||
static const float MIN_RATE = 0.01; // 10 B/s
|
||||
|
||||
|
@ -68,7 +68,9 @@ class pqihandler: public P3Interface, public pqiPublisher
|
||||
|
||||
// Service Data Interface
|
||||
virtual int SendRsRawItem(RsRawItem *);
|
||||
#ifdef TO_BE_REMOVED
|
||||
virtual RsRawItem *GetRsRawItem();
|
||||
#endif
|
||||
|
||||
// rate control.
|
||||
void setMaxRate(bool in, float val);
|
||||
@ -89,8 +91,10 @@ class pqihandler: public P3Interface, public pqiPublisher
|
||||
bool queueOutRsItem(RsItem *) ;
|
||||
|
||||
virtual int locked_checkOutgoingRsItem(RsItem *item, int global);
|
||||
int locked_GetItems();
|
||||
#ifdef TO_BE_REMOVED
|
||||
int locked_GetItems();
|
||||
void locked_SortnStoreItem(RsItem *item);
|
||||
#endif
|
||||
|
||||
RsMutex coreMtx; /* MUTEX */
|
||||
|
||||
|
@ -184,6 +184,10 @@ int pqipersongrp::tick()
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
if(pqihandler::tick())
|
||||
i=1;
|
||||
|
||||
p3ServiceServer::tick();
|
||||
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user