mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
net: add failed addresses + details on connect errors, make connect more robust in the default non blocking mode (#15364)
This commit is contained in:
parent
d6b594c4e8
commit
fd1b6efea6
9 changed files with 202 additions and 41 deletions
5
examples/net_failconnect.v
Normal file
5
examples/net_failconnect.v
Normal file
|
@ -0,0 +1,5 @@
|
|||
import net
|
||||
|
||||
conn := net.dial_tcp('[::1]:57000')?
|
||||
peer_addr := conn.peer_addr()?
|
||||
println('$peer_addr')
|
Loading…
Add table
Add a link
Reference in a new issue