Appearance
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
| Name | Description |
|---|---|
connectionTimeout | The timeout for each port connection attempt, in milliseconds. Default is 1000ms. |
end | The ending port number. Default is 65535. |
host | The hostname or IP address to scan. |
maxParallelism | The maximum number of concurrent connections. Default is 100. |
start | The starting port number. Default is 1. |
Returns
A Task1` representing the asynchronous operation, with the scan results.