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 |
|
Source | extensions/network/libnetwork_host.m line 268 |
Signature | hs.network.host.hostnamesForAddress(address[, fn]) -> table | hostObject |
---|---|
Type | Function |
Description | Get hostnames for the IP address specified. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/network/libnetwork_host.m line 287 |
Signature | hs.network.host.reachabilityForAddress(address[, fn]) -> integer | hostObject |
---|---|
Type | Function |
Description | Get the reachability status for the IP address specified. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/network/libnetwork_host.m line 306 |
Signature | hs.network.host.reachabilityForHostname(name[, fn]) -> integer | hostObject |
---|---|
Type | Function |
Description | Get the reachability status for the IP address specified. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/network/libnetwork_host.m line 327 |
Signature | hs.network.host:cancel() -> hostObject |
---|---|
Type | Method |
Description | Cancels an in-progress asynchronous host resolution. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/network/libnetwork_host.m line 367 |
Signature | hs.network.host:isRunning() -> boolean |
---|---|
Type | Method |
Description | Returns whether or not resolution is still in progress for an asynchronous query. |
Parameters |
|
Returns |
|
Source | extensions/network/libnetwork_host.m line 350 |