| ... | @@ -1090,7 +1090,8 @@ pub const Socket = struct { | ... | @@ -1090,7 +1090,8 @@ pub const Socket = struct { |
| 1090 | } | 1090 | } |
| 1091 | | 1091 | |
| 1092 | pub fn sendMany(s: *const Socket, io: Io, messages: []OutgoingMessage, flags: SendFlags) SendError!void { | 1092 | pub fn sendMany(s: *const Socket, io: Io, messages: []OutgoingMessage, flags: SendFlags) SendError!void { |
| 1093 | return io.vtable.netSend(io.userdata, s.handle, messages, flags); | 1093 | const err, const n = io.vtable.netSend(io.userdata, s.handle, messages, flags); |
| | 1094 | if (n != messages.len) return err.?; |
| 1094 | } | 1095 | } |
| 1095 | | 1096 | |
| 1096 | pub const ReceiveError = error{ | 1097 | pub const ReceiveError = error{ |