Udp.open/port/send/recv/from_ip/from_port/close/resolve/local_ip/ip/ip_text, native BSD sockets (udp.ll) and Winsock (udp_win.ll, -lws2_32), linked only when a program uses Udp.*; example, docs and tests. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
398 B
398 B
| id | name | category | kind | tokens | sig | tip | order | ns | member |
|---|---|---|---|---|---|---|---|---|---|
| udp-from_ip | Udp.from_ip | udp | namespace-method | Udp.from_ip | Udp.from_ip(socket) -> int | The sender of the last datagram read. | 4 | Udp | from_ip |
The address the last datagram read on this socket came from - the one to answer.
program Demo {
entry {
let s = Udp.open(port: 0)
print(Udp.from_ip(socket: s))
}
}