net_tcp

TCP socket object.

Target type

Signature

1net_tcp()

TCP socket object.

net_tcp constructs or identifies a LaiRu value type. net_tcp performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.

Examples

Basic call

1net_tcp->connect('example.com', 80)
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.