aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-03-26 23:33:02 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-03-26 23:33:02 +0100
commit7de44e0a428f88f88483076a19c173f004de9e46 (patch)
tree386c6a98daa87f2d7918f659fc7969df6b482c05 /lib/transfer.h
parent05de2cf18094ddfb461b70bd5e6af4b6098c408c (diff)
Make rate-limitation logic smoother
This gives a smoother rate limitation performance by using sub-second pauses and also taking the buffer sizes into account.
Diffstat (limited to 'lib/transfer.h')
-rw-r--r--lib/transfer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/transfer.h b/lib/transfer.h
index 4e39c2752..4c2bc9e02 100644
--- a/lib/transfer.h
+++ b/lib/transfer.h
@@ -60,4 +60,8 @@ Curl_setup_transfer (struct connectdata *data,
-1 disables */
curl_off_t *writecountp /* return number of bytes written */
);
+
+long Curl_sleep_time(curl_off_t rate_bps, curl_off_t cur_rate_bps,
+ int pkt_size);
+
#endif