(ports: number[])
| 38 | public static AvoidPorts: Set<number> = new Set<number>(); |
| 39 | |
| 40 | public static EmitAllocated(ports: number[]) { |
| 41 | if (ports && ports.length) { |
| 42 | for (const p of ports) { |
| 43 | TcpPortScanner.AvoidPorts.add(p); |
| 44 | } |
| 45 | TcpPortScanner.PortAllocated.emit('allocated', ports); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Checks to see if the port is in use by creating a server on that port. You should use the function |
no test coverage detected