Juan Carlos Castro y Castro <[EMAIL PROTECTED]>:

> Maybe it's obvious but I'd like know if it's possible before I actually
> start working. Let's say I have on one corner an SSL "socket",
> handshaking already done. On the other corner, I have a normal,
> connected, TCP socket. I'd like to know when data has arrived at
> *either* of the sockets. Can I use select() for that? Or do I have to
> use some other function?

select() tells you that some data is there, which means that the next
SSL_read has something to do (unless you're inside an SSL/TLS
negotation, in which case SSL_read may want to *write* to the
network).  This does not guarantee that there's enough data so that
the next call to SSL_read will actually return any bytes.  In
particular, the call may block if the socket is not in non-blocking
mode.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to