Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2014 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2b2aaa5d79eb900a0dcf to your computer and use it in GitHub Desktop.
Save anonymous/2b2aaa5d79eb900a0dcf to your computer and use it in GitHub Desktop.
67 r = uv_tcp_init(loop, &tcp);
68 ASSERT(r == 0);
69 r = uv_fileno((uv_handle_t*) &tcp, &fd);
70 ASSERT(r == UV_EBADF);
71 r = uv_tcp_bind(&tcp, (const struct sockaddr*) &addr, 0);
72 ASSERT(r == 0);
73 r = uv_fileno((uv_handle_t*) &tcp, &fd);
74 ASSERT(r == 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment