This commit is contained in:
Scribe of the Ziggurat 2025-11-23 22:56:58 +00:00 committed by GitHub
commit 4dc35dee59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
}
}