tcp_connect
Establish a TCP connection to an IPv4 or IPv6 address and port, returning a socket ID for further communication.
Instructions
Create a TCP socket and connect to an IP:port. address must be an IPv4 or IPv6 literal (call resolve_dns first for hostnames). Returns socket_id for subsequent send/recv/close operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| address | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||