Lines Matching refs:sockfd
970 curl_socket_t sockfd = CURL_SOCKET_BAD; in juggle() local
1006 sockfd = listenfd; in juggle()
1008 FD_SET(sockfd, &fds_read); in juggle()
1009 maxfd = (int)sockfd; in juggle()
1014 sockfd = *sockfdp; in juggle()
1015 if(CURL_SOCKET_BAD == sockfd) { in juggle()
1022 FD_SET(sockfd, &fds_read); in juggle()
1023 maxfd = (int)sockfd; in juggle()
1029 sockfd = *sockfdp; in juggle()
1031 if(CURL_SOCKET_BAD != sockfd) { in juggle()
1032 FD_SET(sockfd, &fds_read); in juggle()
1033 maxfd = (int)sockfd; in juggle()
1045 sockfd = CURL_SOCKET_BAD; in juggle()
1132 ssize_t bytes_written = swrite(sockfd, buffer, buffer_len); in juggle()
1143 if(sockfd != CURL_SOCKET_BAD) { in juggle()
1145 sclose(sockfd); in juggle()
1159 if((sockfd != CURL_SOCKET_BAD) && (FD_ISSET(sockfd, &fds_read)) ) { in juggle()
1164 curl_socket_t newfd = accept(sockfd, NULL, NULL); in juggle()
1168 "failed with error: (%d) %s", sockfd, error, sstrerror(error)); in juggle()
1181 nread_socket = sread(sockfd, buffer, sizeof(buffer)); in juggle()
1198 sclose(sockfd); in juggle()