зеркало из https://github.com/microsoft/statsd.git
Add brief docs around server callback function sig
This commit is contained in:
Родитель
6984d5d37d
Коммит
f630e15f04
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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче