mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +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
|
@ -10,6 +10,8 @@ module net
|
|||
|
||||
#flag solaris -lsocket
|
||||
|
||||
const is_windows = false
|
||||
|
||||
fn error_code() int {
|
||||
return C.errno
|
||||
}
|
||||
|
@ -23,4 +25,5 @@ pub const (
|
|||
|
||||
const (
|
||||
error_ewouldblock = C.EWOULDBLOCK
|
||||
error_einprogress = C.EINPROGRESS
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue