1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

added verifyconnect proto and use it correctly in the waitconnect function

This commit is contained in:
Daniel Stenberg 2004-01-29 15:37:21 +00:00
parent 7e45a1ac53
commit bfe5568c85

View File

@ -87,6 +87,8 @@
#include "memdebug.h" #include "memdebug.h"
#endif #endif
static bool verifyconnect(int sockfd);
int Curl_ourerrno(void) int Curl_ourerrno(void)
{ {
#ifdef WIN32 #ifdef WIN32
@ -178,7 +180,7 @@ int waitconnect(int sockfd, /* socket */
/* Call this function once now, and ignore the results. We do this to /* Call this function once now, and ignore the results. We do this to
"clear" the error state on the socket so that we can later read it "clear" the error state on the socket so that we can later read it
reliably. This is reported necessary on the MPE/iX operating system. */ reliably. This is reported necessary on the MPE/iX operating system. */
verifyconnect(); verifyconnect(sockfd);
/* now select() until we get connect or timeout */ /* now select() until we get connect or timeout */
FD_ZERO(&fd); FD_ZERO(&fd);