Lines Matching refs:res
38 int res; in wait_on_socket() local
73 res = select((int)sockfd + 1, &infd, &outfd, &errfd, &tv); in wait_on_socket()
74 return res; in wait_on_socket()
94 CURLcode res; in main() local
101 res = curl_easy_perform(curl); in main()
103 if(res != CURLE_OK) { in main()
104 printf("Error: %s\n", curl_easy_strerror(res)); in main()
109 res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd); in main()
111 if(res != CURLE_OK) { in main()
112 printf("Error: %s\n", curl_easy_strerror(res)); in main()
125 res = curl_easy_send(curl, request + nsent_total, in main()
129 if(res == CURLE_AGAIN && !wait_on_socket(sockfd, 0, 60000L)) { in main()
133 } while(res == CURLE_AGAIN); in main()
135 if(res != CURLE_OK) { in main()
136 printf("Error: %s\n", curl_easy_strerror(res)); in main()
152 res = curl_easy_recv(curl, buf, sizeof(buf), &nread); in main()
154 if(res == CURLE_AGAIN && !wait_on_socket(sockfd, 1, 60000L)) { in main()
158 } while(res == CURLE_AGAIN); in main()
160 if(res != CURLE_OK) { in main()
161 printf("Error: %s\n", curl_easy_strerror(res)); in main()