Lines Matching refs:port

63   const hintOptBlocks = doConnect([{ port: 42, hints }],
74 // Test valid combinations of connect(port) and connect(port, host)
87 const port = server.address().port;
90 canConnect(port);
91 canConnect(String(port));
92 canConnect(`0x${port.toString(16)}`);
135 function syncFailToConnect(port, assertErr, optOnly) {
138 // connect(port, cb) and connect(port)
139 const portArgFunctions = doConnect([{ port, family }],
142 assert.throws(fn, assertErr, `${fn.name}(${port})`);
145 // connect(port, host, cb) and connect(port, host)
146 const portHostArgFunctions = doConnect([{ port,
151 assert.throws(fn, assertErr, `${fn.name}(${port}, 'localhost')`);
154 // connect({port}, cb) and connect({port})
155 const portOptFunctions = doConnect([{ port, family }],
158 assert.throws(fn, assertErr, `${fn.name}({port: ${port}})`);
161 // connect({port, host}, cb) and connect({port, host})
162 const portHostOptFunctions = doConnect([{ port: port,
169 `${fn.name}({port: ${port}, host: 'localhost'})`);
173 function canConnect(port) {
177 // connect(port, cb) and connect(port)
178 const portArgFunctions = doConnect([{ port, family }], noop);
183 // connect(port, host, cb) and connect(port, host)
184 const portHostArgFunctions = doConnect([{ port, host: 'localhost', family }],
190 // connect({port}, cb) and connect({port})
191 const portOptFunctions = doConnect([{ port, family }], noop);
196 // connect({port, host}, cb) and connect({port, host})
197 const portHostOptFns = doConnect([{ port, host: 'localhost', family }],
204 function asyncFailToConnect(port) {
212 // connect(port, cb) and connect(port)
213 const portArgFunctions = doConnect([{ port, family }], dont);
218 // connect({port}, cb) and connect({port})
219 const portOptFunctions = doConnect([{ port, family }], dont);
224 // connect({port, host}, cb) and connect({port, host})
225 const portHostOptFns = doConnect([{ port, host: 'localhost', family }],