Boost logo

Boost :

From: Scott (cheesy4poofs_at_[hidden])
Date: 2006-09-14 11:38:19


Hi Chris,

> > My mistake -- I should have checked the man pages first. Try
> > changing this line:
> >
> > int sys_error_code = asio::detail::socket_ops::get_error();
> >
> > to be:
> >
> > int sys_error_code = (int)ERR_get_error();
>
> I forgot to mention that a #include <openssl/err.h> line is
> probably also needed.

I wish I had better news to report, but it's still zero. I tried putting
ERR_get_error() after:

int rc = primitive_( session_ );

But it is always zero there. I then moved it to after the if test:

    if (!is_operation_done && !is_read_needed && !is_write_needed
      && !is_shut_down_sent)
        {
      int sys_error_code = (int)ERR_get_error(); // still zero

In both places it always returns zero. I hate that I can't be of more help
to you in debugging this. :(

Scott


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk