Lines Matching refs:socket_idx
2020 size_t socket_idx; in main() local
2331 for(socket_idx = num_sockets - 1; socket_idx >= 1; --socket_idx) { in main()
2332 if(CURL_SOCKET_BAD == all_sockets[socket_idx]) { in main()
2333 char *dst = (char *) (all_sockets + socket_idx); in main()
2334 char *src = (char *) (all_sockets + socket_idx + 1); in main()
2348 for(socket_idx = 0; socket_idx < num_sockets; ++socket_idx) { in main()
2350 FD_SET(all_sockets[socket_idx], &input); in main()
2351 if(all_sockets[socket_idx] > maxfd) in main()
2352 maxfd = all_sockets[socket_idx]; in main()
2394 for(socket_idx = 1; (socket_idx < num_sockets) && active; ++socket_idx) { in main()
2395 if(FD_ISSET(all_sockets[socket_idx], &input)) { in main()
2402 rc = service_connection(all_sockets[socket_idx], req, sock, in main()
2422 if(all_sockets[socket_idx] != CURL_SOCKET_BAD) { in main()
2423 sclose(all_sockets[socket_idx]); in main()
2424 all_sockets[socket_idx] = CURL_SOCKET_BAD; in main()
2461 for(socket_idx = 1; socket_idx < num_sockets; ++socket_idx) in main()
2462 if((all_sockets[socket_idx] != sock) && in main()
2463 (all_sockets[socket_idx] != CURL_SOCKET_BAD)) in main()
2464 sclose(all_sockets[socket_idx]); in main()