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

Method check

lib/internal/blocklist.js:131–146  ·  view source on GitHub ↗
(address, family = 'ipv4')

Source from the content-addressed store, hash-verified

129 }
130
131 check(address, family = 'ipv4') {
132 if (!SocketAddress.isSocketAddress(address)) {
133 validateString(address, 'address');
134 validateString(family, 'family');
135 try {
136 address = new SocketAddress({
137 address,
138 family,
139 });
140 } catch {
141 // Ignore the error. If it's not a valid address, return false.
142 return false;
143 }
144 }
145 return Boolean(this[kHandle].check(address[kSocketAddressHandle]));
146 }
147
148 /*
149 * @param {string[]} data

Callers 7

internalConnectFunction · 0.45
internalConnectMultipleFunction · 0.45
onconnectionFunction · 0.45
dgram.jsFile · 0.45
doConnectFunction · 0.45
doSendFunction · 0.45
onMessageFunction · 0.45

Calls 1

isSocketAddressMethod · 0.80

Tested by

no test coverage detected