Lines Matching refs:port

238   let port = port_;
264 if (port !== null &&
265 typeof port === 'object' &&
266 typeof port.recvStart === 'function') {
267 replaceHandle(this, port);
273 if (port !== null && typeof port === 'object' &&
274 isInt32(port.fd) && port.fd > 0) {
275 const fd = port.fd;
276 const exclusive = !!port.exclusive;
284 port: null,
312 if (port !== null && typeof port === 'object') {
313 address = port.address || '';
314 exclusive = !!port.exclusive;
315 port = port.port;
348 port: port,
354 const ex = exceptionWithHostPort(err, 'bind', ip, port);
362 const err = state.handle.bind(ip, port || 0, flags);
364 const ex = exceptionWithHostPort(err, 'bind', ip, port);
378 Socket.prototype.connect = function(port, address, callback) {
379 port = validatePort(port, 'Port', false);
396 this.bind({ port: 0, exclusive: true }, null);
400 port, address, callback));
404 ReflectApply(_connect, this, [port, address, callback]);
408 function _connect(port, address, callback) {
417 ex, this, ip, address, port, callback,
425 function doConnect(ex, self, ip, address, port, callback) {
431 const err = state.handle.connect(ip, port);
433 ex = exceptionWithHostPort(err, 'connect', address, port);
471 port,
476 validateNumber(port, 'port');
479 this.send(buffer, offset, length, port, address, callback);
564 // send(buffer, offset, length, port, address, callback)
565 // send(buffer, offset, length, port, address)
566 // send(buffer, offset, length, port, callback)
567 // send(buffer, offset, length, port)
568 // send(bufferOrList, port, address, callback)
569 // send(bufferOrList, port, address)
570 // send(bufferOrList, port, callback)
571 // send(bufferOrList, port)
580 port,
588 if (address || (port && typeof port !== 'function')) {
591 callback = port;
592 port = offset;
598 if (typeof port === 'function') {
599 callback = port;
600 port = null;
606 if (port || address)
633 port = validatePort(port, 'Port', false);
650 this.bind({ port: 0, exclusive: true }, null);
659 list, port, address, callback));
667 ex, this, ip, list, address, port, callback,
678 function doSend(ex, self, ip, list, address, port, callback) {
696 req.port = port;
703 if (port)
704 err = state.handle.send(req, list, list.length, port, ip, !!callback);
718 const ex = exceptionWithHostPort(err, 'send', address, port);
725 err = exceptionWithHostPort(err, 'send', this.address, this.port);