Lines Matching refs:port
227 let port = port_;
253 if (port !== null &&
254 typeof port === 'object' &&
255 typeof port.recvStart === 'function') {
256 replaceHandle(this, port);
262 if (port !== null && typeof port === 'object' &&
263 isInt32(port.fd) && port.fd > 0) {
264 const fd = port.fd;
265 const exclusive = !!port.exclusive;
273 port: null, property
305 if (port !== null && typeof port === 'object') {
306 address = port.address || '';
307 exclusive = !!port.exclusive;
308 port = port.port;
341 port: port, property
347 const ex = exceptionWithHostPort(err, 'bind', ip, port);
355 const err = state.handle.bind(ip, port || 0, flags);
357 const ex = exceptionWithHostPort(err, 'bind', ip, port);
371 Socket.prototype.connect = function(port, address, callback) { argument
372 port = validatePort(port, 'Port', false);
389 this.bind({ port: 0, exclusive: true }, null); property
393 port, address, callback));
397 ReflectApply(_connect, this, [port, address, callback]);
401 function _connect(port, address, callback) { argument
410 ex, this, ip, address, port, callback
418 function doConnect(ex, self, ip, address, port, callback) { argument
424 const err = state.handle.connect(ip, port);
426 ex = exceptionWithHostPort(err, 'connect', address, port);
464 port, argument
469 validateNumber(port, 'port');
472 this.send(buffer, offset, length, port, address, callback);
576 port, argument
584 if (address || (port && typeof port !== 'function')) {
587 callback = port;
588 port = offset;
594 if (typeof port === 'function') {
595 callback = port;
596 port = null;
602 if (port || address)
629 port = validatePort(port, 'Port', false);
646 this.bind({ port: 0, exclusive: true }, null); property
655 list, port, address, callback));
663 ex, this, ip, list, address, port, callback
674 function doSend(ex, self, ip, list, address, port, callback) { argument
692 req.port = port;
699 if (port)
700 err = state.handle.send(req, list, list.length, port, ip, !!callback);
714 const ex = exceptionWithHostPort(err, 'send', address, port);
721 err = exceptionWithHostPort(err, 'send', this.address, this.port);