Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: net/curvecp/rtt_and_send_rate_calculator.cc

Issue 7037022: An initial curvecp implementation. This implementation is not complete, (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "net/curvecp/rtt_and_send_rate_calculator.h" 7 #include "net/curvecp/rtt_and_send_rate_calculator.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 send_rate_ /= 2; 163 send_rate_ /= 2;
164 last_doubling_time_ = last_sample_time_; 164 last_doubling_time_ = last_sample_time_;
165 } 165 }
166 166
167 // returns a random number from 0 to val-1. 167 // returns a random number from 0 to val-1.
168 int32 RttAndSendRateCalculator::randommod(int32 val) { 168 int32 RttAndSendRateCalculator::randommod(int32 val) {
169 return rand() % val; 169 return rand() % val;
170 } 170 }
171 171
172 } // namespace net 172 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698