Lines Matching refs:sockindex
185 CURLcode Curl_conn_shutdown(struct Curl_easy *data, int sockindex, bool *done) in Curl_conn_shutdown() argument
194 cf = data->conn->cfilter[sockindex]; in Curl_conn_shutdown()
205 if(!Curl_shutdown_started(data, sockindex)) { in Curl_conn_shutdown()
207 sockindex ? " secondary" : "")); in Curl_conn_shutdown()
208 Curl_shutdown_start(data, sockindex, &now); in Curl_conn_shutdown()
211 timeout_ms = Curl_shutdown_timeleft(data->conn, sockindex, &now); in Curl_conn_shutdown()
320 cf->sockindex = index; in Curl_conn_cf_add()
338 cf_new->sockindex = cf_at->sockindex; in Curl_conn_cf_insert_after()
407 int sockindex, in Curl_conn_connect() argument
417 cf = data->conn->cfilter[sockindex]; in Curl_conn_connect()
426 if(Curl_conn_needs_flush(data, sockindex)) { in Curl_conn_connect()
427 DEBUGF(infof(data, "Curl_conn_connect(index=%d), flush", sockindex)); in Curl_conn_connect()
428 result = Curl_conn_flush(data, sockindex); in Curl_conn_connect()
441 Curl_verboseconnect(data, data->conn, sockindex); in Curl_conn_connect()
451 bool Curl_conn_is_connected(struct connectdata *conn, int sockindex) in Curl_conn_is_connected() argument
455 cf = conn->cfilter[sockindex]; in Curl_conn_is_connected()
459 bool Curl_conn_is_ip_connected(struct Curl_easy *data, int sockindex) in Curl_conn_is_ip_connected() argument
463 cf = data->conn->cfilter[sockindex]; in Curl_conn_is_ip_connected()
485 bool Curl_conn_is_ssl(struct connectdata *conn, int sockindex) in Curl_conn_is_ssl() argument
487 return conn ? Curl_conn_cf_is_ssl(conn->cfilter[sockindex]) : FALSE; in Curl_conn_is_ssl()
490 bool Curl_conn_is_multiplex(struct connectdata *conn, int sockindex) in Curl_conn_is_multiplex() argument
492 struct Curl_cfilter *cf = conn ? conn->cfilter[sockindex] : NULL; in Curl_conn_is_multiplex()
504 bool Curl_conn_data_pending(struct Curl_easy *data, int sockindex) in Curl_conn_data_pending() argument
512 cf = data->conn->cfilter[sockindex]; in Curl_conn_data_pending()
532 bool Curl_conn_needs_flush(struct Curl_easy *data, int sockindex) in Curl_conn_needs_flush() argument
534 return Curl_conn_cf_needs_flush(data->conn->cfilter[sockindex], data); in Curl_conn_needs_flush()
603 void Curl_conn_get_host(struct Curl_easy *data, int sockindex, in Curl_conn_get_host() argument
610 cf = data->conn->cfilter[sockindex]; in Curl_conn_get_host()
672 curl_socket_t Curl_conn_get_socket(struct Curl_easy *data, int sockindex) in Curl_conn_get_socket() argument
676 cf = data->conn ? data->conn->cfilter[sockindex] : NULL; in Curl_conn_get_socket()
682 return data->conn ? data->conn->sock[sockindex] : CURL_SOCKET_BAD; in Curl_conn_get_socket()
685 void Curl_conn_forget_socket(struct Curl_easy *data, int sockindex) in Curl_conn_forget_socket() argument
688 struct Curl_cfilter *cf = data->conn->cfilter[sockindex]; in Curl_conn_forget_socket()
692 fake_sclose(data->conn->sock[sockindex]); in Curl_conn_forget_socket()
693 data->conn->sock[sockindex] = CURL_SOCKET_BAD; in Curl_conn_forget_socket()
739 CURLcode Curl_conn_flush(struct Curl_easy *data, int sockindex) in Curl_conn_flush() argument
741 return Curl_conn_cf_cntrl(data->conn->cfilter[sockindex], data, FALSE, in Curl_conn_flush()
808 int sockindex) in Curl_conn_keep_alive() argument
810 struct Curl_cfilter *cf = conn->cfilter[sockindex]; in Curl_conn_keep_alive()
816 int sockindex) in Curl_conn_get_max_concurrent() argument
821 struct Curl_cfilter *cf = conn->cfilter[sockindex]; in Curl_conn_get_max_concurrent()
829 int sockindex) in Curl_conn_get_stream_error() argument
834 struct Curl_cfilter *cf = conn->cfilter[sockindex]; in Curl_conn_get_stream_error()
848 CURLcode Curl_conn_recv(struct Curl_easy *data, int sockindex, in Curl_conn_recv() argument
855 nread = data->conn->recv[sockindex](data, sockindex, buf, blen, &result); in Curl_conn_recv()
862 CURLcode Curl_conn_send(struct Curl_easy *data, int sockindex, in Curl_conn_send() argument
871 DEBUGASSERT(sockindex >= 0 && sockindex < 2); in Curl_conn_send()
890 nwritten = conn->send[sockindex](data, sockindex, buf, write_len, eos, in Curl_conn_send()