Lines Matching defs:connect
224 // let s = net.connect({port: 80, host: 'google.com'}, function() {
230 // connect(options, [cb])
231 // connect(port, [host], [cb])
232 // connect(path, [cb]);
234 function connect(...args) {
249 return socket.connect(normalized);
277 // Used to normalize arguments of Socket.prototype.connect() and
282 // For Socket.prototype.connect(), the [...] part is ignored
326 // Handle creation may be deferred to bind() or connect() time.
490 // buffer. if not, then this will happen when we connect
525 // If still connecting - defer handling `_final` until 'connect' will happen
528 return this.once('connect', () => this._final(cb));
723 this.once('connect', () => this._read(n));
743 this.once('connect', () => this._reset());
938 this.once('connect', function connect() {
1022 // EADDRINUSE may not be reported until we call listen() or connect().
1023 // To complicate matters, a failed bind() followed by listen() or connect()
1025 // bound to the expected port before calling listen() or connect().
1044 // TODO return promise from Socket.prototype.connect which
1059 debug('connect: binding to localAddress: %s and localPort: %d (addressType: %d)',
1070 debug('connect: attempting to connect to %s:%d (addressType: %d)', address, port, addressType);
1081 err = self._handle.connect(req, address, port);
1089 err = self._handle.connect(req, address);
1100 const ex = exceptionWithHostPort(err, 'connect', address, port, details);
1103 startPerf(self, kPerfHooksNetConnectContext, { type: 'net', name: 'connect', detail: { host: address, port } });
1136 debug('connect/multiple: binding to localAddress: %s and localPort: %d (addressType: %d)',
1147 debug('connect/multiple: attempting to connect to %s:%d (addressType: %d)', address, port, addressType);
1159 err = handle.connect(req, address, port);
1172 ArrayPrototypePush(context.errors, exceptionWithHostPort(err, 'connect', address, port, details));
1178 debug('connect/multiple: setting the attempt timeout to %d ms', context.timeout);
1185 Socket.prototype.connect = function(...args) {
1224 this.once('connect', cb);
1331 debug('connect: find host', host);
1332 debug('connect: dns options', dnsopts);
1337 debug('connect: autodetecting');
1368 // calls net.Socket.connect() on it (that's us). There are no event
1403 // calls net.Socket.connect() on it (that's us). There are no event
1482 this.once('connect', this.ref);
1496 this.once('connect', this.unref);
1540 self.emit('connect');
1556 'connect',
1574 debug('connect/multiple: ignoring successful but timedout connection to %s:%s', req.address, req.port);
1589 'connect',
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);
2329 connect,
2330 createConnection: connect,