Skip to content

ScanAsync Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Task<PortScanResult> ScanAsync(string host, int start = null, int end = null, int connectionTimeout = null, int maxParallelism = null) ​

csharp
Task<PortScanResult> ScanAsync(string host, int start = null, int end = null, int connectionTimeout = null, int maxParallelism = null)

Asynchronously scans a range of ports on the specified host.

Parameters ​

NameDescription
connectionTimeoutThe timeout for each port connection attempt, in milliseconds. Default is 1000ms.
endThe ending port number. Default is 65535.
hostThe hostname or IP address to scan.
maxParallelismThe maximum number of concurrent connections. Default is 100.
startThe starting port number. Default is 1.

Returns ​

A Task1` representing the asynchronous operation, with the scan results.