Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions udp/hello-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ var sock = dgram.createSocket("udp4");

var buf = new Buffer("hello world");

sock.send(buf, 0, buf.length, 8000, "127.0.0.1");
sock.close();
sock.send(buf, 0, buf.length, 8000, "127.0.0.1", function(err, bytes) {
sock.close();
});