beast/doc/qbk/07_concepts/Streams.qbk
2019-02-24 18:46:27 -08:00

42 lines
1.1 KiB
Plaintext

[/
Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Official repository: https://github.com/boostorg/beast
]
[section:streams 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:
[heading:Stream Stream]
A type modeling [*Stream] meets either or both of the following requirements:
* [*AsyncStream]
* [*SyncStream]
[heading:AsyncStream AsyncStream]
A type modeling [*AsyncStream] meets the following requirements:
* __AsyncReadStream__
* __AsyncWriteStream__
[heading:SyncStream SyncStream]
A type modeling [*SyncStream] meets the following requirements:
* __SyncReadStream__
* __SyncWriteStream__
[endsect]