mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 21:04:32 -04:00
Added Rate Cap to RateInterface, and enabled it for Relay Connections.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4768 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
abbebf48ff
commit
dc8e596c0f
3 changed files with 62 additions and 1 deletions
|
@ -251,6 +251,7 @@ int pqissludp::Initiate_Connection()
|
|||
std::cerr << remote_addr << ")" << std::endl;
|
||||
|
||||
tou_connect_via_relay(sockfd, &(mConnectSrcAddr), &(mConnectProxyAddr), &(remote_addr));
|
||||
parent()->setRateCap( mConnectBandwidth / 1000.0, mConnectBandwidth / 1000.0); // Set RateCap.
|
||||
}
|
||||
|
||||
if (0 != err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue