>Hi,
>
> > I've been trying to figure out (plus testing) how to actually
> > use SSL_write.
>
> Call SSL_write with the same parameters until it succeeds.  You need
> to handle WANT_READ and WANT_WRITE return values.

I guess that is clear enough.
but does that imply if I call 
SSL_write(ssl, buffer, len),
it will ONLY return   len
or <0 ?
I mean if it returns len/2 (sent only half the buffer)
will I have to keep track of that myself or will it only return

call #1: 0 - want write
call #2: 0 - want write
call #3: 0 - want write
call #4: len - everything done

I find the docs a bit unclear on that.
I'm as I already stated, on non blocking sockets.

Thanks
/Tommy
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to