Module sys/udp

sys/udp

Async UDP socket operations.

Provides UDP socket wrappers around the low-level C runtime externs. Reuses SockAddr and address helpers from tcp.yo.

All async operations return IoFuture which resolves to:

  • Positive value: success (fd for socket, bytes for sendto/recvfrom, 0 for others)
  • Negative value: -errno on failure