#include "timeval.h"Go to the source code of this file.
| #define LEAST_SIZE_PROGRESS BUFSIZE |
Definition at line 32 of file progress.h.
| #define PGRS_DL_SIZE_KNOWN (1<<6) |
Definition at line 44 of file progress.h.
Referenced by Curl_pgrsSetDownloadSize(), and Curl_pgrsUpdate().
| #define PGRS_DONE_DL (1<<2) |
Definition at line 40 of file progress.h.
| #define PGRS_DONE_UL (1<<3) |
Definition at line 41 of file progress.h.
| #define PGRS_HEADERS_OUT (1<<7) |
| #define PGRS_HIDE (1<<4) |
Definition at line 42 of file progress.h.
Referenced by curl_easy_reset(), Curl_open(), Curl_pgrsUpdate(), Curl_posttransfer(), and Curl_setopt().
| #define PGRS_SHOW_DL (1<<0) |
Definition at line 38 of file progress.h.
| #define PGRS_SHOW_UL (1<<1) |
Definition at line 39 of file progress.h.
| #define PGRS_UL_SIZE_KNOWN (1<<5) |
Definition at line 43 of file progress.h.
Referenced by Curl_pgrsSetUploadSize(), and Curl_pgrsUpdate().
| #define PROGRESS_DOWN_AND_UP (PROGRESS_UPLOAD | PROGRESS_DOWNLOAD) |
Definition at line 36 of file progress.h.
| #define PROGRESS_DOWNLOAD (1<<0) |
Definition at line 34 of file progress.h.
| #define PROGRESS_UPLOAD (1<<1) |
Definition at line 35 of file progress.h.
| enum timerid |
| TIMER_NONE | |
| TIMER_NAMELOOKUP | |
| TIMER_CONNECT | |
| TIMER_PRETRANSFER | |
| TIMER_STARTTRANSFER | |
| TIMER_POSTRANSFER | |
| TIMER_STARTSINGLE | |
| TIMER_REDIRECT | |
| TIMER_LAST |
Definition at line 10 of file progress.h.
| void Curl_pgrsDone | ( | struct connectdata * | ) |
Definition at line 137 of file progress.c.
References Curl_pgrsUpdate(), connectdata::data, Progress::lastshow, SessionHandle::progress, and Progress::speeder_c.
Referenced by Curl_done(), and Curl_tftp_done().
| void Curl_pgrsResetTimes | ( | struct SessionHandle * | data | ) |
Definition at line 147 of file progress.c.
References SessionHandle::progress, Progress::t_connect, Progress::t_nslookup, Progress::t_pretransfer, and Progress::t_starttransfer.
Referenced by Curl_follow().
| void Curl_pgrsSetDownloadCounter | ( | struct SessionHandle * | data, | |
| curl_off_t | size | |||
| ) |
Definition at line 199 of file progress.c.
References Progress::downloaded, and SessionHandle::progress.
Referenced by Curl_file(), Curl_readwrite(), Curl_readwrite_init(), Curl_tftp(), and ftp_regular_transfer().
| void Curl_pgrsSetDownloadSize | ( | struct SessionHandle * | data, | |
| curl_off_t | size | |||
| ) |
Definition at line 209 of file progress.c.
References Progress::flags, PGRS_DL_SIZE_KNOWN, SessionHandle::progress, and Progress::size_dl.
Referenced by Curl_file(), Curl_readwrite(), Curl_readwrite_init(), and ftp_regular_transfer().
| void Curl_pgrsSetUploadCounter | ( | struct SessionHandle * | data, | |
| curl_off_t | size | |||
| ) |
Definition at line 204 of file progress.c.
References SessionHandle::progress, and Progress::uploaded.
Referenced by Curl_readwrite(), Curl_readwrite_init(), file_upload(), ftp_regular_transfer(), and tftp_tx().
| void Curl_pgrsSetUploadSize | ( | struct SessionHandle * | data, | |
| curl_off_t | size | |||
| ) |
Definition at line 218 of file progress.c.
References Progress::flags, PGRS_UL_SIZE_KNOWN, SessionHandle::progress, and Progress::size_ul.
Referenced by Curl_http(), file_upload(), ftp_regular_transfer(), ftp_state_stor_resp(), and tftp_send_first().
| void Curl_pgrsStartNow | ( | struct SessionHandle * | data | ) |
Definition at line 193 of file progress.c.
References Curl_tvnow, SessionHandle::progress, Progress::speeder_c, and Progress::start.
Referenced by Curl_file(), Curl_pretransfer(), and Curl_tftp_connect().
| void Curl_pgrsTime | ( | struct SessionHandle * | data, | |
| timerid | timer | |||
| ) |
Definition at line 155 of file progress.c.
References Curl_tvdiff_secs, Curl_tvnow, SessionHandle::progress, Progress::start, Progress::t_connect, Progress::t_nslookup, Progress::t_pretransfer, Progress::t_redirect, Progress::t_startsingle, Progress::t_starttransfer, TIMER_CONNECT, TIMER_NAMELOOKUP, TIMER_NONE, TIMER_POSTRANSFER, TIMER_PRETRANSFER, TIMER_REDIRECT, TIMER_STARTSINGLE, and TIMER_STARTTRANSFER.
Referenced by Curl_connect_host(), Curl_file(), Curl_follow(), Curl_protocol_connect(), Curl_readwrite(), Curl_readwrite_init(), multi_runsingle(), and SetupConnection().
| int Curl_pgrsUpdate | ( | struct connectdata * | ) |
Definition at line 227 of file progress.c.
References Curl_tvdiff, Curl_tvnow, CURR_TIME, Progress::current_speed, connectdata::data, Progress::dlspeed, Progress::downloaded, UserDefined::err, failf, FALSE, Progress::flags, FORMAT_OFF_T, UserDefined::fprogress, Progress::lastshow, max5data(), PGRS_DL_SIZE_KNOWN, PGRS_HEADERS_OUT, PGRS_HIDE, PGRS_UL_SIZE_KNOWN, SessionHandle::progress, UserDefined::progress_client, SessionHandle::reqdata, HandleData::resume_from, SessionHandle::set, Progress::size_dl, Progress::size_ul, Progress::speeder, Progress::speeder_c, Progress::speeder_time, Progress::start, time2str(), Progress::timespent, TRUE, timeval::tv_sec, timeval::tv_usec, Progress::ulspeed, and Progress::uploaded.
Referenced by Curl_file(), Curl_GetFTPResponse(), Curl_pgrsDone(), Curl_readwrite(), Curl_tftp(), file_upload(), and multi_runsingle().
1.5.6