Skip to content

Commit

Permalink
Fixes nikhilm#61
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilm committed Dec 1, 2015
1 parent 589fbd4 commit 39a2f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/networking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ callback of ``uv_listen`` is used by ``uv_tcp_connect``. Try::
struct sockaddr_in dest;
uv_ip4_addr("127.0.0.1", 80, &dest);

uv_tcp_connect(connect, socket, dest, on_connect);
uv_tcp_connect(connect, socket, (const struct sockaddr*)&dest, on_connect);

where ``on_connect`` will be called after the connection is established. The
callback receives the ``uv_connect_t`` struct, which has a member ``.handle``
Expand Down

0 comments on commit 39a2f35

Please sign in to comment.