| author | |
| committer | |
| log | f0f0855830c4a62db74f61412172407b2a7dfa47 |
| tree | e7defc8813475ac20afdb8c118fcf8bf79c3385f |
| parent | 69ac8a251783363d5299df684d947474be60793a |
| signature |
1 files changed, 4 insertions(+), 0 deletions(-)
net.zig+4| ... | ... | @@ -129,6 +129,10 @@ pub const Stream = struct { |
| 129 | 129 | sys.close(@intCast(@intFromEnum(s.socket))) catch {}; |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | pub fn shutdown(s: Stream, how: sys.SHUT) !void { | |
| 133 | return sys.shutdown(@intCast(@intFromEnum(s.socket)), how); | |
| 134 | } | |
| 135 | ||
| 132 | 136 | pub const ReadError = switch (builtin.target.os.tag) { |
| 133 | 137 | .linux => sys.errno.Error, |
| 134 | 138 | else => @compileError("TODO"), |