net_udp

UDP socket object.

Target type

Signature

1net_udp()

UDP socket object.

net_udp constructs or identifies a LaiRu value type. net_udp 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_udp->writeBytes(bytes('hi'), '127.0.0.1', 9999)
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.