Lines Matching refs:cf
68 static CURLcode cf_haproxy_date_out_set(struct Curl_cfilter*cf, in cf_haproxy_date_out_set() argument
71 struct cf_haproxy_ctx *ctx = cf->ctx; in cf_haproxy_date_out_set()
80 if(cf->conn->unix_domain_socket) in cf_haproxy_date_out_set()
85 result = Curl_conn_cf_get_ip_info(cf->next, data, &is_ipv6, &ipquad); in cf_haproxy_date_out_set()
106 static CURLcode cf_haproxy_connect(struct Curl_cfilter *cf, in cf_haproxy_connect() argument
110 struct cf_haproxy_ctx *ctx = cf->ctx; in cf_haproxy_connect()
115 if(cf->connected) { in cf_haproxy_connect()
120 result = cf->next->cft->do_connect(cf->next, data, blocking, done); in cf_haproxy_connect()
126 result = cf_haproxy_date_out_set(cf, data); in cf_haproxy_connect()
135 nwritten = Curl_conn_cf_send(cf->next, data, in cf_haproxy_connect()
159 cf->connected = *done; in cf_haproxy_connect()
163 static void cf_haproxy_destroy(struct Curl_cfilter *cf, in cf_haproxy_destroy() argument
167 CURL_TRC_CF(data, cf, "destroy"); in cf_haproxy_destroy()
168 cf_haproxy_ctx_free(cf->ctx); in cf_haproxy_destroy()
171 static void cf_haproxy_close(struct Curl_cfilter *cf, in cf_haproxy_close() argument
174 CURL_TRC_CF(data, cf, "close"); in cf_haproxy_close()
175 cf->connected = FALSE; in cf_haproxy_close()
176 cf_haproxy_ctx_reset(cf->ctx); in cf_haproxy_close()
177 if(cf->next) in cf_haproxy_close()
178 cf->next->cft->do_close(cf->next, data); in cf_haproxy_close()
181 static void cf_haproxy_adjust_pollset(struct Curl_cfilter *cf, in cf_haproxy_adjust_pollset() argument
185 if(cf->next->connected && !cf->connected) { in cf_haproxy_adjust_pollset()
188 Curl_pollset_set_out_only(data, ps, Curl_conn_cf_get_socket(cf, data)); in cf_haproxy_adjust_pollset()
214 struct Curl_cfilter *cf = NULL; in cf_haproxy_create() local
227 result = Curl_cf_create(&cf, &Curl_cft_haproxy, ctx); in cf_haproxy_create()
234 *pcf = result ? NULL : cf; in cf_haproxy_create()
241 struct Curl_cfilter *cf; in Curl_cf_haproxy_insert_after() local
244 result = cf_haproxy_create(&cf, data); in Curl_cf_haproxy_insert_after()
247 Curl_conn_cf_insert_after(cf_at, cf); in Curl_cf_haproxy_insert_after()