Lines Matching refs:sockindex
576 int sockindex, in trynextip() argument
588 if(sockindex == FIRSTSOCKET) { in trynextip()
774 static CURLcode connect_SOCKS(struct Curl_easy *data, int sockindex, in connect_SOCKS() argument
790 sockindex == SECONDARYSOCKET ? in connect_SOCKS()
794 sockindex == SECONDARYSOCKET ? conn->secondary_port : in connect_SOCKS()
801 host, port, sockindex, data, done); in connect_SOCKS()
806 pxresult = Curl_SOCKS4(conn->socks_proxy.user, host, port, sockindex, in connect_SOCKS()
822 (void)sockindex; in connect_SOCKS()
835 int sockindex, in post_SOCKS() argument
838 conn->bits.tcpconnect[sockindex] = TRUE; in post_SOCKS()
841 if(sockindex == FIRSTSOCKET) in post_SOCKS()
843 Curl_updateconninfo(data, conn, conn->sock[sockindex]); in post_SOCKS()
854 int sockindex, in Curl_is_connected() argument
864 DEBUGASSERT(sockindex >= FIRSTSOCKET && sockindex <= SECONDARYSOCKET); in Curl_is_connected()
868 if(conn->bits.tcpconnect[sockindex]) { in Curl_is_connected()
878 result = connect_SOCKS(data, sockindex, connected); in Curl_is_connected()
880 post_SOCKS(data, conn, sockindex, connected); in Curl_is_connected()
894 conn->sock[sockindex] = conn->tempsock[i]; in Curl_is_connected()
897 post_SOCKS(data, conn, sockindex, connected); in Curl_is_connected()
934 trynextip(data, conn, sockindex, 1); in Curl_is_connected()
942 conn->sock[sockindex] = conn->tempsock[i]; in Curl_is_connected()
957 result = connect_SOCKS(data, sockindex, connected); in Curl_is_connected()
961 post_SOCKS(data, conn, sockindex, connected); in Curl_is_connected()
993 status = trynextip(data, conn, sockindex, i); in Curl_is_connected()
1026 result = trynextip(data, conn, sockindex, 1); in Curl_is_connected()
1670 bool Curl_conn_data_pending(struct connectdata *conn, int sockindex) in Curl_conn_data_pending() argument
1675 if(Curl_ssl_data_pending(conn, sockindex) || in Curl_conn_data_pending()
1676 Curl_recv_has_postponed_data(conn, sockindex)) in Curl_conn_data_pending()
1679 readable = SOCKET_READABLE(conn->sock[sockindex], 0); in Curl_conn_data_pending()