Lines Matching defs:info
44 * beginning of a perform session. It must reset the session-info variables,
50 struct PureInfo *info = &data->info;
61 info->httpcode = 0;
62 info->httpproxycode = 0;
63 info->httpversion = 0;
64 info->filetime = -1; /* -1 is an illegal time and thus means unknown */
65 info->timecond = FALSE;
67 info->header_size = 0;
68 info->request_size = 0;
69 info->proxyauthavail = 0;
70 info->httpauthavail = 0;
71 info->numconnects = 0;
73 free(info->contenttype);
74 info->contenttype = NULL;
76 free(info->wouldredirect);
77 info->wouldredirect = NULL;
79 info->conn_primary_ip[0] = '\0';
80 info->conn_local_ip[0] = '\0';
81 info->conn_primary_port = 0;
82 info->conn_local_port = 0;
83 info->retry_after = 0;
85 info->conn_scheme = 0;
86 info->conn_protocol = 0;
94 static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info,
97 switch(info) {
132 *param_charp = data->info.contenttype;
148 *param_charp = data->info.wouldredirect;
156 *param_charp = data->info.conn_primary_ip;
161 *param_charp = data->info.conn_local_ip;
167 *param_charp = data->info.conn_scheme;
191 static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
205 switch(info) {
217 switch(info) {
228 switch(info) {
230 *param_longp = data->info.httpcode;
233 *param_longp = data->info.httpproxycode;
236 if(data->info.filetime > LONG_MAX)
238 else if(data->info.filetime < LONG_MIN)
241 *param_longp = (long)data->info.filetime;
244 *param_longp = (long)data->info.header_size;
247 *param_longp = (long)data->info.request_size;
262 *lptr.to_ulong = data->info.httpauthavail;
266 *lptr.to_ulong = data->info.proxyauthavail;
272 *param_longp = data->info.numconnects;
288 *param_longp = data->info.conn_primary_port;
292 *param_longp = data->info.conn_local_port;
295 *param_longp = (long)data->info.pxcode;
298 if(data->info.httpcode == 304)
302 *param_longp = data->info.timecond ? 1L : 0L;
316 switch(data->info.httpversion) {
335 *param_longp = data->info.conn_protocol;
346 static CURLcode getinfo_offt(struct Curl_easy *data, CURLINFO info,
353 switch(info) {
370 switch(info) {
372 *param_offt = (curl_off_t)data->info.filetime;
419 *param_offt = data->info.retry_after;
435 static CURLcode getinfo_double(struct Curl_easy *data, CURLINFO info,
442 switch(info) {
459 switch(info) {
509 static CURLcode getinfo_slist(struct Curl_easy *data, CURLINFO info,
517 switch(info) {
527 ptr.to_certinfo = &data->info.certs;
546 tsi->internals = Curl_ssl_get_internals(data, FIRSTSOCKET, info, 0);
558 static CURLcode getinfo_socket(struct Curl_easy *data, CURLINFO info,
561 switch(info) {
572 CURLcode Curl_getinfo(struct Curl_easy *data, CURLINFO info, ...)
587 va_start(arg, info);
589 type = CURLINFO_TYPEMASK & (int)info;
594 result = getinfo_char(data, info, param_charp);
599 result = getinfo_long(data, info, param_longp);
604 result = getinfo_double(data, info, param_doublep);
609 result = getinfo_offt(data, info, param_offt);
614 result = getinfo_slist(data, info, param_slistp);
619 result = getinfo_socket(data, info, param_socketp);