feat(v1.4.1): add native proposal module, Lover Accept Checker AI, and modules documentation catalog
This commit is contained in:
1 parent
4895c201c1
commit
b7ae6c9725
20 files changed
+600
-34
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# 📡 AiraLang `net` Module
|
||||
> **Low-Level Network Diagnostics & Sockets**
|
||||
|
||||
## Import
|
||||
```aira
|
||||
import "net";
|
||||
```
|
||||
|
||||
## Methods
|
||||
- `net.ping(host, [timeout=2])`: Check ICMP reachability.
|
||||
- `net.port_open(host, port, [timeout=2])`: Test TCP socket connectivity.
|
||||
- `net.local_ip()`: Retrieve current local network IP address.
|
||||
- `net.fetch(url)`: Quick HTTP GET shortcut.
|
||||
|
||||
## Example
|
||||
```aira
|
||||
import "net";
|
||||
|
||||
say "Local IP: " + net.local_ip();
|
||||
say "Gateway reachable: " + net.ping("1.1.1.1");
|
||||
```
|
||||
Reference in new issue
Block a user