Hi Frank Don't know anything about Qt socket system but I feel there must be some other API in place of select in that. Non-blocking sockets cant' be handled without select easily and efficiently.. Its very crude way but u can sort of implement select functionality like this..
a) timeout = 100 msecs b) SSL_connect returns -1 indicated want_read. set read=1 write=0 c) goto sleep for timeout duration d) Again call SSL_connect after timeout... If read than goto c) if error is wait_for write than also goto c). e) After some calls this SSL connection would be established. f) If u are client u must knowing its purpose. If read call SSL_read and depeodng on return goto sleep and set some flag to store last error and perform SSL_read or SSL_write depending on that flag.. HTH -Krishna On 8/18/06, Frank Büttner <[EMAIL PROTECTED]> wrote:
Krishna M Singh schrieb: > Not sure whether it failed with bio.. But for non-blocking sockets u > must use the select call else it would be too complex to handle the > sockets.. Have u tried that..? > > I can't use the select() call, because I only have an fd for the socket. But no direct connection to the socket. I can write/read data, and get an messages when data are coming in. That's all. There is no select call in the Qt socket system.
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]