MCPcopy Create free account
hub / github.com/Marus/cortex-debug / waitForPortStatus

Method waitForPortStatus

src/remote/src/tcpportscanner.ts:393–399  ·  view source on GitHub ↗

* Wait for particular port status. We always do a minium of one try regardless of timeouts, so setting a timeout * of 0 means only one try * * @param inUse true means wait for port to be ready to use. False means wait for port to close * @return a promise. On failure, the error

(
        port: number, host = TcpPortScanner.DefaultHost, inUse = true,
        checkLocalHostAliaes = true, retryTimeMs = 100, timeOutMs = 5000)

Source from the content-addressed store, hash-verified

391 * for other failures
392 */
393 public static waitForPortStatus(
394 port: number, host = TcpPortScanner.DefaultHost, inUse = true,
395 checkLocalHostAliaes = true, retryTimeMs = 100, timeOutMs = 5000): Promise<void> {
396 retryTimeMs = Math.max(retryTimeMs, 1);
397 const opts = new PortStatusArgs(inUse, port, host, checkLocalHostAliaes, retryTimeMs, timeOutMs);
398 return TcpPortScanner.waitForPortStatusEx(opts);
399 }
400
401 /**
402 * Wait for port to open. We always do a minium of one try regardless of timeouts, so setting a timeout

Callers

nothing calls this directly

Calls 1

waitForPortStatusExMethod · 0.45

Tested by

no test coverage detected