mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-09 07:08:59 +00:00
parent
d7b73af8f6
commit
137b115681
1 changed files with 1 additions and 0 deletions
|
|
@ -3999,6 +3999,7 @@ pub fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) Conne
|
||||||
.PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol.
|
.PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol.
|
||||||
.TIMEDOUT => return error.ConnectionTimedOut,
|
.TIMEDOUT => return error.ConnectionTimedOut,
|
||||||
.NOENT => return error.FileNotFound, // Returned when socket is AF.UNIX and the given path does not exist.
|
.NOENT => return error.FileNotFound, // Returned when socket is AF.UNIX and the given path does not exist.
|
||||||
|
.CONNABORTED => unreachable, // Tried to reuse socket that previously received error.ConnectionRefused.
|
||||||
else => |err| return unexpectedErrno(err),
|
else => |err| return unexpectedErrno(err),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue