# std: Decouple network streams from fs.File · gitcafe/zig

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

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

Visibility: public

Requested revision: 89d6317b93bbe5aac00c6af5833b3e74211ab37f

Requested commit: 89d6317b93bbe5aac00c6af5833b3e74211ab37f

Commit: 89d6317b93bbe5aac00c6af5833b3e74211ab37f

Tree: 4cffb9731dc8522e46c95c58813a94af66187ae6

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Decouple network streams from fs.File

The overlap between files and sockets is minimal and lumping them
together means supporting only a small subset of the functionalities
provided by the OS.
Moreover the socket and file handles are not always interchangeable: on
Windows one should use Winsock's close() call rather than the one used
for common files.

```

## Parents

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

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