mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
make Io.net.sendMany compile
This commit is contained in:
parent
c166bb36f6
commit
58e3c2cefd
1 changed files with 2 additions and 1 deletions
|
|
@ -1090,7 +1090,8 @@ pub const Socket = struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn sendMany(s: *const Socket, io: Io, messages: []OutgoingMessage, flags: SendFlags) SendError!void {
|
pub fn sendMany(s: *const Socket, io: Io, messages: []OutgoingMessage, flags: SendFlags) SendError!void {
|
||||||
return io.vtable.netSend(io.userdata, s.handle, messages, flags);
|
const err, const n = io.vtable.netSend(io.userdata, s.handle, messages, flags);
|
||||||
|
if (n != messages.len) return err.?;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const ReceiveError = error{
|
pub const ReceiveError = error{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue