зеркало из https://github.com/microsoft/statsd.git
Add brief docs around server callback function sig
This commit is contained in:
Родитель
987116d22c
Коммит
7aabdcfc7a
4
stats.js
4
stats.js
|
@ -46,6 +46,10 @@ function loadBackend(config, name) {
|
|||
}
|
||||
|
||||
// Load and init the server from the servers/ directory.
|
||||
// The callback mimics the dgram 'message' event parameters (msg, rinfo)
|
||||
// msg: the message received by the server. may contain more than one metric
|
||||
// rinfo: contains remote address information and message length
|
||||
// (attributes are .address, .port, .family, .size - you're welcome)
|
||||
function startServer(config, name, callback) {
|
||||
var servermod = require(name);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче