Closed mapa17 closed 12 years ago
Implemented a simple Bandwidth model in the peer and the connection.
The connection can be set to a maximum up/download bandwidth. At each iteration this the actual bandwidth will be randomly chosen and at between [0.9 - 1.0] of its limit.
The peer is right now simply splitting its bandwidth symmetrically between all connections ( not active, but possible connection. Meaning with 2 tft and one OU each active connection gets one third up/down )
The connection and peer class needs to be extended to support up and download bandwidth limitation.
Peer Factory needs to be extended to add some bandwidth information to the construction of the peer
In the peer class a upload and download bandwidth scheduler must be implemented.