Searched refs:DDIR_UPLOAD (Results 1 – 8 of 8) sorted by relevance
/dports/net-p2p/libswift/libswift-dc0cbcc/ |
H A D | content.cpp | 42 cur_speed_[DDIR_UPLOAD] = MovingAverageSpeed(); in ContentTransfer() 44 max_speed_[DDIR_UPLOAD] = DBL_MAX; in ContentTransfer() 357 uint32_t speed = cur_speed_[DDIR_UPLOAD].GetSpeedNeutral(); in OnSendData() 360 cur_speed_[DDIR_UPLOAD].AddPoint((uint64_t)n*rate); in OnSendData() 375 cur_speed_[DDIR_UPLOAD].AddPoint((uint64_t)0); in OnSendNoData()
|
H A D | swift.cpp | 314 n = sscanf(optarg,"%lf",&maxspeed[DDIR_UPLOAD]); in utf8main() 317 maxspeed[DDIR_UPLOAD] *= 1024.0; in utf8main() 654 swift::SetMaxSpeed(single_td,DDIR_UPLOAD,maxspeed[DDIR_UPLOAD]); in HandleSwiftSwarm() 930 double up = swift::GetCurrentSpeed(single_td,DDIR_UPLOAD); in ReportCallback() 979 double up = swift::GetCurrentSpeed(td,DDIR_UPLOAD); in ReportCallback()
|
H A D | swarmmanager.cpp | 426 swarm->SetMaxSpeed(DDIR_UPLOAD, swarm->cachedMaxSpeeds_[DDIR_UPLOAD]); in BuildSwarm() 701 swarm->cachedMaxSpeeds_[DDIR_UPLOAD] = swarm->ft_->GetMaxSpeed(DDIR_UPLOAD); in DeactivateSwarm()
|
H A D | httpgw.cpp | 1214 swift::SetMaxSpeed(td,DDIR_UPLOAD,httpgw_maxspeed[DDIR_UPLOAD]); in HttpGwNewRequestCallback() 1357 uspeed = (int)(swift::GetCurrentSpeed(td,DDIR_UPLOAD)/1024.0); in HttpGwStatsGetSpeedCallback() 1391 fprintf(stderr,"httpgw: upload %lf\n",swift::GetCurrentSpeed(td,DDIR_UPLOAD)/1024.0); in HTTPIsSending()
|
H A D | statsgw.cpp | 195 contentupspeed += swift::GetCurrentSpeed(td,DDIR_UPLOAD); in StatsGetSpeedCallback()
|
H A D | cmdgw.cpp | 299 double ulspeed = swift::GetCurrentSpeed(req->td,DDIR_UPLOAD); in CmdGwSendINFO() 927 ddir = !strcmp(token,"DOWNLOAD") ? DDIR_DOWNLOAD : DDIR_UPLOAD; in CmdGwHandleCommand()
|
H A D | sendrecv.cpp | 764 if (transfer()->GetCurrentSpeed(DDIR_UPLOAD) > transfer()->GetMaxSpeed(DDIR_UPLOAD)) { in AddData()
|
H A D | swift.h | 339 DDIR_UPLOAD, enumerator
|