Lines Matching refs:port
87 const port = server.address().port; constant
90 canConnect(port);
91 canConnect(String(port));
92 canConnect(`0x${port.toString(16)}`);
136 function syncFailToConnect(port, assertErr, optOnly) { argument
139 const portArgFunctions = doConnect([port], () => common.mustNotCall());
141 assert.throws(fn, assertErr, `${fn.name}(${port})`);
145 const portHostArgFunctions = doConnect([port, 'localhost'],
148 assert.throws(fn, assertErr, `${fn.name}(${port}, 'localhost')`);
152 const portOptFunctions = doConnect([{ port }], () => common.mustNotCall()); field
154 assert.throws(fn, assertErr, `${fn.name}({port: ${port}})`);
158 const portHostOptFunctions = doConnect([{ port: port, host: 'localhost' }], property
163 `${fn.name}({port: ${port}, host: 'localhost'})`);
167 function canConnect(port) { argument
171 const portArgFunctions = doConnect([port], noop);
177 const portHostArgFunctions = doConnect([port, 'localhost'], noop);
183 const portOptFunctions = doConnect([{ port }], noop); field
189 const portHostOptFns = doConnect([{ port, host: 'localhost' }], noop); property
195 function asyncFailToConnect(port) { argument
203 const portArgFunctions = doConnect([port], dont);
209 const portOptFunctions = doConnect([{ port }], dont); field
215 const portHostOptFns = doConnect([{ port, host: 'localhost' }], dont); property