Lines Matching refs:socket_idx
2029 size_t socket_idx; in main() local
2294 for(socket_idx = num_sockets - 1; socket_idx >= 1; --socket_idx) { in main()
2295 if(CURL_SOCKET_BAD == all_sockets[socket_idx]) { in main()
2296 char *dst = (char *) (all_sockets + socket_idx); in main()
2297 char *src = (char *) (all_sockets + socket_idx + 1); in main()
2311 for(socket_idx = 0; socket_idx < num_sockets; ++socket_idx) { in main()
2313 FD_SET(all_sockets[socket_idx], &input); in main()
2314 if(all_sockets[socket_idx] > maxfd) in main()
2315 maxfd = all_sockets[socket_idx]; in main()
2353 for(socket_idx = 1; socket_idx < num_sockets; ++socket_idx) { in main()
2354 if(FD_ISSET(all_sockets[socket_idx], &input)) { in main()
2360 rc = service_connection(all_sockets[socket_idx], &req, sock, in main()
2380 if(all_sockets[socket_idx] != CURL_SOCKET_BAD) { in main()
2381 sclose(all_sockets[socket_idx]); in main()
2382 all_sockets[socket_idx] = CURL_SOCKET_BAD; in main()
2406 for(socket_idx = 1; socket_idx < num_sockets; ++socket_idx) in main()
2407 if((all_sockets[socket_idx] != sock) && in main()
2408 (all_sockets[socket_idx] != CURL_SOCKET_BAD)) in main()
2409 sclose(all_sockets[socket_idx]); in main()