method
Udp.from_ip
Udp.from_ip(socket) -> int
The address the last datagram read on this socket came from - the one to answer.
Example
program Demo {
entry {
let s = Udp.open(port: 0)
print(Udp.from_ip(socket: s))
}
}Udp.from_ip(socket) -> int
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))
}
}