# x/net/tcp, x/os/socket: tcp.Client\.\{Reader, Writer\} · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d3871af724f838fdb8b6ef95b38ef1409b46c0b7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d3871af724f838fdb8b6ef95b38ef1409b46c0b7

Requested commit: d3871af724f838fdb8b6ef95b38ef1409b46c0b7

Commit: d3871af724f838fdb8b6ef95b38ef1409b46c0b7

Tree: c2f24663a7b63b45990d9be4d44588b881ba0a11

Author: lithdew

Committer: lithdew

## Message

```
x/net/tcp, x/os/socket: tcp.Client.{Reader, Writer}

Only allow SOCK_STREAM (std.x.net.tcp.Client) sockets to have wrappers
for std.io.Reader and std.io.Writer provided, instead of Socket's in
general.

```

## Parents

- [d7b601b35e16788000853903dabaa0b10081660e](https://git.cafe/gitcafe/zig/commit/d7b601b35e16788000853903dabaa0b10081660e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d3871af724f838fdb8b6ef95b38ef1409b46c0b7?format=markdown)
