Lines Matching defs:conn

69                             struct connectdata *conn)
71 Curl_llist_insert_next(&bundle->conn_list, bundle->conn_list.tail, conn,
72 &conn->bundle_node);
73 conn->bundle = bundle;
79 struct connectdata *conn)
85 if(curr->ptr == conn) {
88 conn->bundle = NULL;
126 static void hashkey(struct connectdata *conn, char *buf, size_t len)
129 long port = conn->remote_port;
132 if(conn->bits.httpproxy && !conn->bits.tunnel_proxy) {
133 hostname = conn->http_proxy.host.name;
134 port = conn->port;
138 if(conn->bits.conn_to_host)
139 hostname = conn->conn_to_host.name;
141 hostname = conn->host.name;
145 msnprintf(buf, len, "%u/%ld/%s", conn->scope_id, port, hostname);
170 struct connectdata *conn,
177 hashkey(conn, key, sizeof(key));
219 struct connectdata *conn = data->conn;
221 DEBUGASSERT(conn);
224 bundle = Curl_conncache_find_bundle(data, conn, data->state.conn_cache);
233 hashkey(conn, key, sizeof(key));
242 bundle_add_conn(bundle, conn);
243 conn->connection_id = connc->next_connection_id++;
248 conn->connection_id, connc->num_conn));
264 struct connectdata *conn, bool lock)
266 struct connectbundle *bundle = conn->bundle;
275 bundle_remove_conn(bundle, conn);
278 conn->bundle = NULL; /* removed from it */
306 struct connectdata *conn, void *param))
329 struct connectdata *conn = curr->ptr;
332 if(1 == func(data, conn, param)) {
380 struct connectdata *conn)
386 conn->lastused = Curl_now(); /* it was used up until now */
405 return (conn_candidate == conn) ? FALSE : TRUE;
427 struct connectdata *conn;
435 conn = curr->ptr;
437 if(!CONN_INUSE(conn)) {
439 score = Curl_timediff(now, conn->lastused);
443 conn_candidate = conn;
486 struct connectdata *conn;
492 conn = curr->ptr;
494 if(!CONN_INUSE(conn) && !conn->bits.close &&
495 !conn->connect_only) {
497 score = Curl_timediff(now, conn->lastused);
501 conn_candidate = conn;
524 struct connectdata *conn;
532 conn = conncache_find_first_connection(connc);
533 while(conn) {
536 connclose(conn, "kill all");
537 Curl_conncache_remove_conn(connc->closure_handle, conn, TRUE);
538 Curl_disconnect(connc->closure_handle, conn, FALSE);
541 conn = conncache_find_first_connection(connc);
571 struct connectdata *conn;
578 conn = curr->ptr;
580 fprintf(stderr, " [%p %d]", (void *)conn, conn->inuse);