• Home
  • Raw
  • Download

Lines Matching refs:callback

71     return this.callback(dnsException(err, 'getaddrinfo', this.hostname));
73 this.callback(null, addresses[0], this.family || isIP(addresses[0]));
79 return this.callback(dnsException(err, 'getaddrinfo', this.hostname));
91 this.callback(null, addresses);
97 function lookup(hostname, options, callback) { argument
107 callback = options;
109 } else if (typeof callback !== 'function') {
110 throw new ERR_INVALID_CALLBACK(callback);
129 process.nextTick(callback, null, []);
131 process.nextTick(callback, null, null, family === 6 ? 6 : 4);
140 callback, null, [{ address: hostname, family: matchedFamily }]);
142 process.nextTick(callback, null, hostname, matchedFamily);
148 req.callback = callback;
157 process.nextTick(callback, dnsException(err, 'getaddrinfo', hostname));
169 return this.callback(dnsException(err, 'getnameinfo', this.hostname));
171 this.callback(null, hostname, service);
175 function lookupService(address, port, callback) { argument
184 if (typeof callback !== 'function')
185 throw new ERR_INVALID_CALLBACK(callback);
190 req.callback = callback;
210 this.callback(dnsException(err, this.bindingName, this.hostname));
212 this.callback(null, result);
216 function query(name, /* options, */ callback) { argument
219 options = callback;
220 callback = arguments[2];
224 if (typeof callback !== 'function') {
225 throw new ERR_INVALID_CALLBACK(callback);
230 req.callback = callback;
259 function resolve(hostname, rrtype, callback) { argument
265 callback = rrtype;
271 return ReflectApply(resolver, this, [hostname, callback]);