net module
Core framework Console Desktop
Property | Description | Access | Type |
---|---|---|---|
net.isalive | Check if a network connection is available | readonly | boolean |
net.error | Get the last network related error message | readonly | string | nil |
net.ip | Get current local IPv4 address | readonly | string | boolean |
net.publicip | Get the current public IPv4 address | readonly | string | boolean |
Function | Description | Return value |
---|---|---|
net.resolve() | Resolve hostname to IP | string | boolean |
net.reverse() | Get the fully qualified domain from an IP address | string |
net.select() | Check for network events on Sockets | boolean |
net.urlparse() | Parse an URL into components | string | false | nil |
net.adapters() | Iterate over installed network adapters | function |
net.getmime() | Retrieve a MIME type | string |