Lines Matching refs:sockfd
76 curl_socket_t sockfd; in opensocket() local
79 sockfd = *(curl_socket_t *)clientp; in opensocket()
82 return sockfd; in opensocket()
100 curl_socket_t sockfd; in main() local
120 sockfd = socket(AF_INET, SOCK_STREAM, 0); in main()
121 if(sockfd == CURL_SOCKET_BAD) { in main()
132 close(sockfd); in main()
136 if(connect(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr)) == in main()
138 close(sockfd); in main()
151 curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, &sockfd); in main()
155 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, &sockfd); in main()
166 close(sockfd); in main()