mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Merge 9e46af7ab3 into 9082b004b6
This commit is contained in:
commit
4dc35dee59
1 changed files with 5 additions and 0 deletions
|
|
@ -5466,6 +5466,9 @@ pub const SendError = error{
|
|||
|
||||
/// The destination address is not listening.
|
||||
ConnectionRefused,
|
||||
|
||||
/// The connection timed out.
|
||||
ConnectionTimedOut,
|
||||
} || UnexpectedError;
|
||||
|
||||
pub const SendMsgError = SendError || error{
|
||||
|
|
@ -5552,6 +5555,7 @@ pub fn sendmsg(
|
|||
.NETUNREACH => return error.NetworkUnreachable,
|
||||
.NOTCONN => return error.SocketUnconnected,
|
||||
.NETDOWN => return error.NetworkDown,
|
||||
.TIMEDOUT => return error.ConnectionTimedOut,
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
|
@ -5657,6 +5661,7 @@ pub fn sendto(
|
|||
.NETUNREACH => return error.NetworkUnreachable,
|
||||
.NOTCONN => return error.SocketUnconnected,
|
||||
.NETDOWN => return error.NetworkDown,
|
||||
.TIMEDOUT => return error.ConnectionTimedOut,
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue