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

Function socketToDnsFamily

lib/net.js:1504–1513  ·  view source on GitHub ↗
(family)

Source from the content-addressed store, hash-verified

1502};
1503
1504function socketToDnsFamily(family) {
1505 switch (family) {
1506 case 'IPv4':
1507 return 4;
1508 case 'IPv6':
1509 return 6;
1510 }
1511
1512 return family;
1513}
1514
1515function lookupAndConnect(self, options) {
1516 const { localAddress, localPort } = options;

Callers 1

lookupAndConnectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…