Thank you for you help, Dr Stephen Henson. I have another question for
everyone though. Windows doesn't necessarily seem to work with file
descriptors. How should I treat them if Windows doesn't have it? What is
returned instead on a windows machine?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson
Sent: Thursday, September 13, 2007 8:14 PM
To: [email protected]
Subject: Re: Windows and file descriptors

On Thu, Sep 13, 2007, Loukas Stoumbos wrote:

> 
> 
> I appreciate the reply but perhaps someone can provide some insight.
Looking
> at the man page it says this.
> 
> BIO_set_nbio() sets the non blocking I/O flag to n. If n is zero then
> blocking I/O is set. If n is 1 then non blocking I/O is set. Blocking I/O
is
> the default. The call to BIO_set_nbio() should be made before the
connection
> is established because non blocking I/O is set during the connect process.
> 
> What does it mean that the non blocking I/O is set during the connect
> process? Does it change the socket into non blocking afterwards or does it
> revert back to blocking?
> 

Non blocking is set when the socket is created, before the connect process.
So
the actual connect takes place with non-blocking I/O set and it may be
necessary (depending on retry condition) to wait for a connect event.

Non blocking I/O stays set and it does not revert to blocking later.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to