On Thu, Jan 15, 2015 at 7:04 PM, Devchandra Meetei <[email protected]> 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.
