diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-19 15:30:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-19 15:30:08 +0000 |
commit | f4bef25b5eede9ea17f237ebae52c2f89cc211cd (patch) | |
tree | 35670c54ced8bfe2821af24151fae4c84ad79b84 /lib/getinfo.c | |
parent | ebf7d225036bb060402ee6a66988a3de877cdd1a (diff) | |
download | curl-f4bef25b5eede9ea17f237ebae52c2f89cc211cd.tar.gz |
CURLINFO_NUM_CONNECTS and more
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 88627d6e4..e554931a9 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -38,7 +38,7 @@ #include "memdebug.h" /* - * This is supposed to be called in the beginning of a permform() session + * This is supposed to be called in the beginning of a perform() session * and should reset all session-info variables */ CURLcode Curl_initinfo(struct SessionHandle *data) @@ -63,6 +63,7 @@ CURLcode Curl_initinfo(struct SessionHandle *data) info->header_size = 0; info->request_size = 0; + info->numconnects = 0; return CURLE_OK; } @@ -170,6 +171,9 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) case CURLINFO_OS_ERRNO: *param_longp = data->state.os_errno; break; + case CURLINFO_NUM_CONNECTS: + *param_longp = data->info.numconnects; + break; default: return CURLE_BAD_FUNCTION_ARGUMENT; } |