# net_tcp_check

Check if a TCP port is open on a host.

```rhai
net_tcp_check(host: &str, port: i64) -> bool
```

## Examples

```rhai
if net_tcp_check("localhost", 8080) {
    print("Port 8080 is open");
}
```

```rhai
let host = "192.168.1.100";
if net_tcp_check(host, 22) {
    print("SSH is accessible");
} else {
    print("SSH port closed");
}
```
