Lines Matching defs:address
649 Socket.prototype.address = function() {
890 return this._getpeername().address;
915 return this._getsockname().address;
1043 self, address, port, addressType, localAddress, localPort, flags) {
1070 debug('connect: attempting to connect to %s:%d (addressType: %d)', address, port, addressType);
1075 req.address = address;
1081 err = self._handle.connect(req, address, port);
1083 err = self._handle.connect6(req, address, port);
1086 req.address = address;
1089 err = self._handle.connect(req, address);
1097 details = sockname.address + ':' + sockname.port;
1100 const ex = exceptionWithHostPort(err, 'connect', address, port, details);
1103 startPerf(self, kPerfHooksNetConnectContext, { type: 'net', name: 'connect', detail: { host: address, port } });
1123 const { address, family: addressType } = context.addresses[current];
1147 debug('connect/multiple: attempting to connect to %s:%d (addressType: %d)', address, port, addressType);
1151 req.address = address;
1156 ArrayPrototypePush(self.autoSelectFamilyAttemptedAddresses, `${address}:${port}`);
1159 err = handle.connect(req, address, port);
1161 err = handle.connect6(req, address, port);
1169 details = sockname.address + ':' + sockname.port;
1172 ArrayPrototypePush(context.errors, exceptionWithHostPort(err, 'connect', address, port, details));
1410 // The first valid address determines which group has preference on the
1415 const address = addresses[i];
1416 const { address: ip, family: addressType } = address;
1424 ArrayPrototypePush(validIps[destinations[addressType]], address);
1430 const { address: firstIp, family: firstAddressType } = addresses[0];
1557 req.address,
1574 debug('connect/multiple: ignoring successful but timedout connection to %s:%s', req.address, req.port);
1590 req.address,
1600 // Try the next address
1607 debug('connect/multiple: ignoring successful but timedout connection to %s:%s', req.address, req.port);
1621 { type: 'net', name: 'connect', detail: { host: req.address, port: req.port } },
1629 debug('connect/multiple: connection to %s:%s timed out', req.address, req.port);
1712 function createServerHandle(address, port, addressType, fd, flags) {
1731 assert(!address && !port);
1745 if (address || port || isTCP) {
1746 debug('bind to', address || 'any');
1747 if (!address) {
1756 err = handle.bind6(address, port, flags);
1758 err = handle.bind(address, port);
1770 function setupListenHandle(address, port, addressType, backlog, fd, flags) {
1771 debug('setupListenHandle', address, port, addressType, backlog, fd);
1782 // Try to bind to the unspecified IPv6 address, see if IPv6 is available
1783 if (!address && typeof fd !== 'number') {
1788 address = DEFAULT_IPV4_ADDR;
1791 address = DEFAULT_IPV6_ADDR;
1797 rval = createServerHandle(address, port, addressType, fd, flags);
1800 const error = uvExceptionWithHostPort(rval, 'listen', address, port);
1817 const ex = uvExceptionWithHostPort(err, 'listen', address, port);
1829 this._connectionKey = addressType + ':' + address + ':' + port;
1855 function listenInCluster(server, address, port, addressType,
1865 server._listen2(address, port, addressType, backlog, fd, flags);
1870 address: address,
1885 const ex = exceptionWithHostPort(err, 'bind', address, port);
1893 server._listen2(address, port, addressType, backlog, fd, flags);
1951 } else { // Undefined host, listens on unspecified address
2007 function lookupAndListen(self, port, address, backlog, exclusive, flags) {
2009 dns.lookup(address, function doListen(err, ip, addressType) {
2029 Server.prototype.address = function() {
2034 throw errnoException(err, 'address');
2060 data.localAddress = localInfo.address;
2067 data.remoteAddress = remoteInfo.address;