net module
Core framework Console Desktop
The net module provides networking functionalities
| Property | Description | Access | Type |
|---|---|---|---|
| net.error | Get the last network related error message | readonly | string nil |
| net.ip | Get current local IPv4 address | readonly | string boolean |
| net.isalive | Check if a network connection is available | readonly | boolean |
| net.publicip | Get the current public IPv4 address | readonly | string boolean |
| Functions | Description | Return value |
|---|---|---|
| net.adapters() | Iterate over installed network adapters | function |
| net.getmime() | Retrieve a MIME type | string |
| 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.urlencode() | Get an URL-encoded string | string |
| net.urlparse() | Parse an URL into components | string false nil |