Home
last modified time | relevance | path

Searched refs:DDIR_UPLOAD (Results 1 – 8 of 8) sorted by relevance

/dports/net-p2p/libswift/libswift-dc0cbcc/
H A Dcontent.cpp42 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 Dswift.cpp314 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 Dswarmmanager.cpp426 swarm->SetMaxSpeed(DDIR_UPLOAD, swarm->cachedMaxSpeeds_[DDIR_UPLOAD]); in BuildSwarm()
701 swarm->cachedMaxSpeeds_[DDIR_UPLOAD] = swarm->ft_->GetMaxSpeed(DDIR_UPLOAD); in DeactivateSwarm()
H A Dhttpgw.cpp1214 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 Dstatsgw.cpp195 contentupspeed += swift::GetCurrentSpeed(td,DDIR_UPLOAD); in StatsGetSpeedCallback()
H A Dcmdgw.cpp299 double ulspeed = swift::GetCurrentSpeed(req->td,DDIR_UPLOAD); in CmdGwSendINFO()
927 ddir = !strcmp(token,"DOWNLOAD") ? DDIR_DOWNLOAD : DDIR_UPLOAD; in CmdGwHandleCommand()
H A Dsendrecv.cpp764 if (transfer()->GetCurrentSpeed(DDIR_UPLOAD) > transfer()->GetMaxSpeed(DDIR_UPLOAD)) { in AddData()
H A Dswift.h339 DDIR_UPLOAD, enumerator