title: How to get file descriptor for an accepted tcp socket in libuv?
body: <p>The POSIX <a href="https://linux.die.net/man/2/accept" rel="nofollow noreferrer"><code>accept</code></a> function returns the descriptor for the socket that has been accepted. However <a href="http://docs.libuv.org/en/v1.x/stream.html?highlight=uv_accept#c.uv_accept" rel="nofollow noreferrer"><code>uv_accept</code></a> returns an error indicator instead.</p>
  
  <p>How to get the file descriptor then?</p>