|
I have an app working very well...
*except* i now want (need?) to accurately determine if it's "ok to write" (will
not block) or "ok to read". Without SSL, I could do this with a select()..
however a select() is clearly not correct when using SSL.
However, SSL_pending() (i think...) only
returns > 0 if is there is stuff in the buffer... what if there is "nothing
in the buffer, but the socket has real data pending"? How can the program
distinguish that case from "nothing in the buffer, but the socket has nothing
more than a key change in it and will block if i read a byte from
it"?
It seems to me that there must be some sort
of standard "loop" which is roughly equivalent to a SSL_select(...). A simple and clear way to simply and
accurately "wait until either writing or reading will not block or there is an
error" ... just like a select() statement.
I think this can be derived from
s_client... but I was hoping someone had done it.. or determined that it could
not be done.
|
- Re: quick question.. Erik Aronesty
- Re: quick question.. Bodo Moeller
