static int BIO_dgram_should_retry(int i) { int err; if ((i == 0) || (i == -1)) { err = errno; return (BIO_dgram_non_fatal_error(err)); } return (0); }
int BIO_dgram_should_retry(int i) { int err; if ((i == 0) || (i == -1)) { err=get_last_socket_error(); #if defined(OPENSSL_SYS_WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */ if ((i == -1) && (err == 0)) return(1); #endif return(BIO_dgram_non_fatal_error(err)); } return(0); }
static int BIO_dgram_should_retry(int i) { int err; if ((i == 0) || (i == -1)) { err=get_last_socket_error(); #if defined(OPENSSL_SYS_WINDOWS) /* If the socket return value (i) is -1 * and err is unexpectedly 0 at this point, * the error code was overwritten by * another system call before this error * handling is called. */ #endif return(BIO_dgram_non_fatal_error(err)); } return(0); }