Victor Duchovni wrote:
On Thu, Sep 13, 2007 at 02:09:20PM -0400, Jim Marshall wrote:
Pardon my ignorance, but why do you need to specify acceptSock+1? I
tried this and it fixed the problem, but I don't understand why.
This is described in the select() manpage.
So it is:
"nfds is the highest-numbered file descriptor in any of the three sets,
plus 1"
When I read this I didn't realize I had to add one to the socket, I
thought the select call would deal with that :O. Thanks for the insight,
I really appreciate your help!
You are telling select *how-many* bits of the bitmask to use, not the
highest numbered fd.
*scratching head*
ok, so this confuses me, obviously I'm easily confused :( in your
previous response you indicated I should use "(acceptRet + 1)". Isn't
'acceptRet' the fd (acceptRet = BIO_get_fd(sock, NULL);)? So should I do
that or use '1' as the first parameter or (acceptRet + 1)?
Thanks, and sorry.
-Jim
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]