1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/net_failconnect.v

6 lines
102 B
V

import net
conn := net.dial_tcp('[::1]:57000')?
peer_addr := conn.peer_addr()?
println('$peer_addr')