diff options
Diffstat (limited to 'src/io/io_darwin.zig')
-rw-r--r-- | src/io/io_darwin.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/io/io_darwin.zig b/src/io/io_darwin.zig index f1ff5a06e..d3e09cf15 100644 --- a/src/io/io_darwin.zig +++ b/src/io/io_darwin.zig @@ -231,6 +231,7 @@ const Operation = union(enum) { socket: os.socket_t, buf: [*]const u8, len: u32, + flags: u32 = 0, }, timeout: struct { expires: u64, @@ -571,6 +572,7 @@ pub fn send( completion: *Completion, socket: os.socket_t, buffer: []const u8, + flags: u32, ) void { self.submit( context, @@ -581,10 +583,11 @@ pub fn send( .socket = socket, .buf = buffer.ptr, .len = @intCast(u32, buffer_limit(buffer.len)), + .flags = flags, }, struct { fn doOperation(op: anytype) SendError!usize { - return os.send(op.socket, op.buf[0..op.len], 0); + return os.send(op.socket, op.buf[0..op.len], op.flags); } }, ); |