method
Udp.resolve
Udp.resolve(name) -> int
Returns the first IPv4 address of a host name, or 0. It waits for the system's resolver, so call it outside the frame loop.
Example
program Demo {
entry {
print(Udp.ip_text(ip: Udp.resolve(name: "localhost")))
}
}