| Home | Libraries | People | FAQ | More

### Streams

A stream in the context of Beast and networking, represents a full-duplex connection between two programs or hosts, where data represented as bytes may be received reliably in the same order they were written. Streams may support any combination of synchronous and/or asynchronous reading and writing.

Stream concepts are based on named requirements in networking:

##### Stream

A type modeling Stream meets either or both of the following requirements:

- AsyncStream
- SyncStream

##### AsyncStream

A type modeling AsyncStream meets the following requirements:

- AsyncReadStream
- AsyncWriteStream

##### SyncStream

A type modeling SyncStream meets the following requirements:

- SyncReadStream
- SyncWriteStream