Krishna M Singh schrieb:
> 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
So I found out that SSL don't take teh data from the socket:(
The Qt buffer will grow and grow, but SSL don't read the data:(

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to