mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-14 09:05:48 -04:00
added bandwidth measurement for video. Still needs codec to accound for it
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7463 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9c3266fdd9
commit
c6103b7535
15 changed files with 157 additions and 73 deletions
|
@ -53,6 +53,8 @@ class VorsPeerInfo
|
|||
|
||||
uint32_t mLostPongs;
|
||||
uint32_t mSentPings;
|
||||
uint32_t total_bytes_received ;
|
||||
uint32_t average_incoming_bandwidth ;
|
||||
|
||||
std::list<RsVoipPongResult> mPongResults;
|
||||
std::list<RsVoipDataItem*> incoming_queue ;
|
||||
|
@ -136,7 +138,9 @@ class p3VoRS: public RsPQIService, public RsVoip
|
|||
private:
|
||||
int sendPackets();
|
||||
void sendPingMeasurements();
|
||||
//int processIncoming();
|
||||
void sendBandwidthInfo();
|
||||
|
||||
int sendVoipBandwidth(const RsPeerId &peer_id,uint32_t bytes_per_sec) ;
|
||||
|
||||
int handlePing(RsVoipPingItem *item);
|
||||
int handlePong(RsVoipPongItem *item);
|
||||
|
@ -156,6 +160,7 @@ class p3VoRS: public RsPQIService, public RsVoip
|
|||
|
||||
std::map<RsPeerId, VorsPeerInfo> mPeerInfo;
|
||||
time_t mSentPingTime;
|
||||
time_t mSentBandwidthInfoTime;
|
||||
uint32_t mCounter;
|
||||
|
||||
RsServiceControl *mServiceControl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue