API Reference › Udp › Udp.from_ip
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))
  }
}
← All symbols