Lines Matching refs:sockindex
164 int sockindex; in xfer_recv_shutdown() local
170 sockindex = (data->conn->sockfd == data->conn->sock[SECONDARYSOCKET]); in xfer_recv_shutdown()
171 return Curl_conn_shutdown(data, sockindex, done); in xfer_recv_shutdown()
176 int sockindex; in xfer_recv_shutdown_started() local
182 sockindex = (data->conn->sockfd == data->conn->sock[SECONDARYSOCKET]); in xfer_recv_shutdown_started()
183 return Curl_shutdown_started(data, sockindex); in xfer_recv_shutdown_started()
188 int sockindex; in Curl_xfer_send_shutdown() local
194 sockindex = (data->conn->writesockfd == data->conn->sock[SECONDARYSOCKET]); in Curl_xfer_send_shutdown()
195 return Curl_conn_shutdown(data, sockindex, done); in Curl_xfer_send_shutdown()
776 int sockindex, /* socket index to read from or -1 */ in xfer_setup() argument
792 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in xfer_setup()
794 DEBUGASSERT(!shutdown || (sockindex == -1) || (writesockindex == -1)); in xfer_setup()
798 conn->sockfd = sockindex == -1 ? in xfer_setup()
800 conn->sock[sockindex]; in xfer_setup()
807 conn->sockfd = sockindex == -1 ? in xfer_setup()
808 CURL_SOCKET_BAD : conn->sock[sockindex]; in xfer_setup()
830 if(sockindex != -1) in xfer_setup()
920 int sockindex; in Curl_xfer_needs_flush() local
921 sockindex = ((data->conn->writesockfd != CURL_SOCKET_BAD) && in Curl_xfer_needs_flush()
923 return Curl_conn_needs_flush(data, sockindex); in Curl_xfer_needs_flush()
928 int sockindex; in Curl_xfer_flush() local
929 sockindex = ((data->conn->writesockfd != CURL_SOCKET_BAD) && in Curl_xfer_flush()
931 return Curl_conn_flush(data, sockindex); in Curl_xfer_flush()
939 int sockindex; in Curl_xfer_send() local
944 sockindex = ((data->conn->writesockfd != CURL_SOCKET_BAD) && in Curl_xfer_send()
946 result = Curl_conn_send(data, sockindex, buf, blen, eos, pnwritten); in Curl_xfer_send()
963 int sockindex; in Curl_xfer_recv() local
969 sockindex = ((data->conn->sockfd != CURL_SOCKET_BAD) && in Curl_xfer_recv()
973 return Curl_conn_recv(data, sockindex, buf, blen, pnrcvd); in Curl_xfer_recv()