Skip to content

Commit 439a6be

Browse files
committed
A bit more doc.
1 parent b3a8095 commit 439a6be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ntp-client.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* ntp-client
3-
* https://github.com/moonpyk/node-ntp
3+
* https://github.com/moonpyk/node-ntp-client
44
*
55
* Copyright (c) 2013 Clément Bourgeois
66
* Licensed under the MIT license.
@@ -15,9 +15,11 @@
1515
exports.defaultNtpServer = "pool.ntp.org";
1616

1717
/**
18+
* Fetches the current NTP Time from the given server and port.
1819
* @param {string} server IP/Hostname of the remote NTP Server
1920
* @param {number} port Remote NTP Server port number
20-
* @param {function(Object, Date)} callback
21+
* @param {function(Object, Date)} callback(err, date) Async callback for the result date
22+
* or eventually error.
2123
*/
2224
exports.getNetworkTime = function (server, port, callback) {
2325
var client = dgram.createSocket("udp4"),

0 commit comments

Comments
 (0)