Hello!

I think you could use internal `stream->io_watcher.fd` field if you wish.


On Wed, Jul 23, 2014 at 11:03 AM, Fish Zheng <[email protected]> wrote:

> Hi, libuver,
>     I want to integrate libuv with polarssl for ssl connection.
>
>     In the polarssl BIO callback function -- ssl_set_bio, it need the
> accepted socket fd after the socket connection established.
>     However on Win32/Linux platform, I cannot find the socket fd -- libuv
> will not provide that private member, right?
>     If not, how can I get that socket fd to call ssl_set_bio as the
> read/write handle parameter?
>
> The ssl_set_bio function declaration in polarssl-1.3.2.
>
> /**
>  * \brief          Set the underlying BIO read and write callbacks
>  *
>  * \param ssl      SSL context
>  * \param f_recv   read callback
>  * \param p_recv   read parameter
>  * \param f_send   write callback
>  * \param p_send   write parameter
>  */
> void ssl_set_bio( ssl_context *ssl,
>         int (*f_recv)(void *, unsigned char *, size_t), void *p_recv,
>         int (*f_send)(void *, const unsigned char *, size_t), void *p_send
> );
>
> --
> You received this message because you are subscribed to the Google Groups
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to