aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/examples/net_peer_ip.v
blob: 7f84deb98fedeec671adea75a75871679a975ce4 (plain)
1
2
3
4
5
import net

conn := net.dial_tcp('google.com:80') ?
peer_addr := conn.peer_addr() ?
println('$peer_addr')