Thank you Ben, That explains a lot. I was trying to have a way for SSL support and I don't want to go BIO pair way as it involves few other nitty gritty house keeping.
With the clue you suggested, image is getting more and more clear. What I am thinking now is, 1) setup a non blocking socket and uv_tcp_open and uv_poll_init. 2) Poll calback will accept the connection and used the accepted fd in SSL is this plausible or you have better approaches in mind? On Friday, 16 January 2015 13:29:54 UTC+5:30, Ben Noordhuis wrote: > > On Thu, Jan 15, 2015 at 7:04 PM, Devchandra Meetei <[email protected] > <javascript:>> wrote: > > Or is the stream->io_watcher.fd or uv_fileno way to extract the same? > > > > Preliminary look seems to suggest that uv_tcp_t.accepted_fd holds the > > accepted fd. > > > > Will somebody please explain the interplay? > > You should not touch any fields that are marked internal; they are > internal for a reason. :-) > > If you created the handle with uv_tcp_init(), the file descriptor > belongs to libuv. You can create the file descriptor yourself and > pass it to uv_tcp_open() or uv_poll_init(); libuv will then take > ownership of it. > -- 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.
