Browse files

Use send, not sento, so dns and other nice things get delt with

  • Loading branch information...
1 parent 4eafee8 commit 93013cacc1fc8e27305221ee4d1aa30e84d669b4 @pquerna committed Dec 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 udp/hello-client.js
View
2 udp/hello-client.js
@@ -10,5 +10,5 @@ var sock = dgram.createSocket("udp4");
var buf = new Buffer("hello world");
-sock.sendto(buf, 0, buf.length, 8000, "127.0.0.1");
+sock.send(buf, 0, buf.length, 8000, "127.0.0.1");
sock.close();

0 comments on commit 93013ca

Please sign in to comment.