Lines Matching refs:connc

119 int Curl_conncache_init(struct conncache *connc, int size)  in Curl_conncache_init()  argument
121 return Curl_hash_init(&connc->hash, size, Curl_hash_str, in Curl_conncache_init()
125 void Curl_conncache_destroy(struct conncache *connc) in Curl_conncache_destroy() argument
127 if(connc) in Curl_conncache_destroy()
128 Curl_hash_destroy(&connc->hash); in Curl_conncache_destroy()
149 struct conncache *connc) in Curl_conncache_find_bundle() argument
152 if(connc) { in Curl_conncache_find_bundle()
155 bundle = Curl_hash_pick(&connc->hash, key, strlen(key)); in Curl_conncache_find_bundle()
163 static bool conncache_add_bundle(struct conncache *connc, in conncache_add_bundle() argument
167 void *p = Curl_hash_add(&connc->hash, key, strlen(key), bundle); in conncache_add_bundle()
172 static void conncache_remove_bundle(struct conncache *connc, in conncache_remove_bundle() argument
178 if(!connc) in conncache_remove_bundle()
181 Curl_hash_start_iterate(&connc->hash, &iter); in conncache_remove_bundle()
188 Curl_hash_delete(&connc->hash, he->key, he->key_len); in conncache_remove_bundle()
196 CURLcode Curl_conncache_add_conn(struct conncache *connc, in Curl_conncache_add_conn() argument
235 conn->connection_id = connc->next_connection_id++; in Curl_conncache_add_conn()
236 connc->num_connections++; in Curl_conncache_add_conn()
240 conn->connection_id, (curl_off_t) connc->num_connections)); in Curl_conncache_add_conn()
245 void Curl_conncache_remove_conn(struct conncache *connc, in Curl_conncache_remove_conn() argument
255 conncache_remove_bundle(connc, bundle); in Curl_conncache_remove_conn()
258 if(connc) { in Curl_conncache_remove_conn()
259 connc->num_connections--; in Curl_conncache_remove_conn()
263 (curl_off_t) connc->num_connections)); in Curl_conncache_remove_conn()
274 void Curl_conncache_foreach(struct conncache *connc, in Curl_conncache_foreach() argument
282 if(!connc) in Curl_conncache_foreach()
285 Curl_hash_start_iterate(&connc->hash, &iter); in Curl_conncache_foreach()
310 Curl_conncache_find_first_connection(struct conncache *connc) in Curl_conncache_find_first_connection() argument
316 Curl_hash_start_iterate(&connc->hash, &iter); in Curl_conncache_find_first_connection()
337 void Curl_conncache_print(struct conncache *connc)
343 if(!connc)
348 Curl_hash_start_iterate(connc->hash, &iter);