This sub-module provides functions for acquiring host information, such as hostnames, addresses, and reachability.
| Signature | hs.network.host.addressesForHostname(name[, fn]) -> table | hostObject |
|---|---|
| Type | Function |
| Description | Get IP addresses for the hostname specified. Parameters:
Returns:
Notes:
|
| Signature | hs.network.host.hostnamesForAddress(address[, fn]) -> table | hostObject |
|---|---|
| Type | Function |
| Description | Get hostnames for the IP address specified. Parameters:
Returns:
Notes:
|
| Signature | hs.network.host.reachabilityForAddress(address[, fn]) -> integer | hostObject |
|---|---|
| Type | Function |
| Description | Get the reachability status for the IP address specified. Parameters:
Returns:
Notes:
|
| Signature | hs.network.host.reachabilityForHostname(name[, fn]) -> integer | hostObject |
|---|---|
| Type | Function |
| Description | Get the reachability status for the IP address specified. Parameters:
Returns:
Notes:
|
| Signature | hs.network.host:cancel() -> hostObject |
|---|---|
| Type | Method |
| Description | Cancels an in-progress asynchronous host resolution. Parameters:
Returns:
Notes:
|
| Signature | hs.network.host:isRunning() -> boolean |
|---|---|
| Type | Method |
| Description | Returns whether or not resolution is still in progress for an asynchronous query. Parameters:
Returns:
|