MCPcopy Index your code
hub / github.com/nodejs/node / onlookupservice

Function onlookupservice

lib/dns.js:257–265  ·  view source on GitHub ↗
(err, hostname, service)

Source from the content-addressed store, hash-verified

255
256
257function onlookupservice(err, hostname, service) {
258 if (err)
259 return this.callback(new DNSException(err, 'getnameinfo', this.hostname));
260
261 this.callback(null, hostname, service);
262 if (this[kPerfHooksDnsLookupServiceContext] && hasObserver('dns')) {
263 stopPerf(this, kPerfHooksDnsLookupServiceContext, { detail: { hostname, service } });
264 }
265}
266
267
268function lookupService(address, port, callback) {

Callers

nothing calls this directly

Calls 3

hasObserverFunction · 0.85
stopPerfFunction · 0.85
callbackMethod · 0.80

Tested by

no test coverage detected