Appearance
Scan Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
PortScanResult Scan(string host, int start = null, int end = null, int connectionTimeout = null, int maxParallelism = null)
csharp
PortScanResult Scan(string host, int start = null, int end = null, int connectionTimeout = null, int maxParallelism = null)Synchronously 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 PortScanResult containing the list of open ports.