Home | History | Annotate | Download | only in lib

Lines Matching refs:info

42  * beginning of a perform session. It must reset the session-info variables,
48 struct PureInfo *info = &data->info;
59 info->httpcode = 0;
60 info->httpproxycode = 0;
61 info->httpversion = 0;
62 info->filetime = -1; /* -1 is an illegal time and thus means unknown */
63 info->timecond = FALSE;
65 info->header_size = 0;
66 info->request_size = 0;
67 info->proxyauthavail = 0;
68 info->httpauthavail = 0;
69 info->numconnects = 0;
71 free(info->contenttype);
72 info->contenttype = NULL;
74 free(info->wouldredirect);
75 info->wouldredirect = NULL;
77 info->conn_primary_ip[0] = '\0';
78 info->conn_local_ip[0] = '\0';
79 info->conn_primary_port = 0;
80 info->conn_local_port = 0;
82 info->conn_scheme = 0;
83 info->conn_protocol = 0;
92 static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info,
95 switch(info) {
100 *param_charp = data->info.contenttype;
116 *param_charp = data->info.wouldredirect;
120 *param_charp = data->info.conn_primary_ip;
125 *param_charp = data->info.conn_local_ip;
131 *param_charp = data->info.conn_scheme;
141 static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info,
151 switch(info) {
153 *param_longp = data->info.httpcode;
156 *param_longp = data->info.httpproxycode;
159 *param_longp = data->info.filetime;
162 *param_longp = data->info.header_size;
165 *param_longp = data->info.request_size;
178 *lptr.to_ulong = data->info.httpauthavail;
182 *lptr.to_ulong = data->info.proxyauthavail;
188 *param_longp = data->info.numconnects;
204 *param_longp = data->info.conn_primary_port;
208 *param_longp = data->info.conn_local_port;
212 *param_longp = data->info.timecond ? 1L : 0L;
224 switch(data->info.httpversion) {
240 *param_longp = data->info.conn_protocol;
252 static CURLcode getinfo_offt(struct Curl_easy *data, CURLINFO info,
255 switch(info) {
283 static CURLcode getinfo_double(struct Curl_easy *data, CURLINFO info,
286 switch(info) {
336 static CURLcode getinfo_slist(struct Curl_easy *data, CURLINFO info,
344 switch(info) {
354 ptr.to_certinfo = &data->info.certs;
376 tsi->internals = Curl_ssl->get_internals(&conn->ssl[i], info);
391 static CURLcode getinfo_socket(struct Curl_easy *data, CURLINFO info,
394 switch(info) {
405 CURLcode Curl_getinfo(struct Curl_easy *data, CURLINFO info, ...)
420 va_start(arg, info);
422 type = CURLINFO_TYPEMASK & (int)info;
427 result = getinfo_char(data, info, param_charp);
432 result = getinfo_long(data, info, param_longp);
437 result = getinfo_double(data, info, param_doublep);
442 result = getinfo_offt(data, info, param_offt);
447 result = getinfo_slist(data, info, param_slistp);
452 result = getinfo_socket(data, info, param_socketp);