Exemplo n.º 1
0
int BIO_fd_should_retry(int i)
#endif
	{
	int err;

	if ((i == 0) || (i == -1))
		{
#ifndef BIO_FD
		err=get_last_socket_error();
#else
		err=get_last_sys_error();
#endif

#if defined(WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */
		if ((i == -1) && (err == 0))
			return(1);
#endif

#ifndef BIO_FD
		return(BIO_sock_non_fatal_error(err));
#else
		return(BIO_fd_non_fatal_error(err));
#endif
		}
	return(0);
	}
Exemplo n.º 2
0
int BIO_sock_should_retry(int i)
	{
	if (i < 0)
		{
		return BIO_sock_non_fatal_error(-i);
		}
	return(0);
	}
Exemplo n.º 3
0
int BIO_sock_should_retry(int i)
{
    int err;

    if ((i == 0) || (i == -1)) {
        err = get_last_socket_error();

        return (BIO_sock_non_fatal_error(err));
    }
    return (0);
}
Exemplo n.º 4
0
int BIO_sock_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_sock_non_fatal_error(err));
    }