Files

41 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2016-05-11 08:36:29 -04:00
[/
2019-02-23 21:00:58 -08:00
Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
2016-05-11 08:36:29 -04:00
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)
2017-07-28 19:32:33 -07:00
Official repository: https://github.com/boostorg/beast
2016-05-11 08:36:29 -04:00
]
2017-07-09 20:09:30 -07:00
[section:streams Streams]
2016-05-11 08:36:29 -04:00
2019-01-18 07:41:45 -08:00
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.
2019-01-18 07:41:45 -08:00
Stream concepts are based on named requirements in networking:
2016-05-11 08:36:29 -04:00
[heading:Stream Stream]
2017-05-28 09:05:29 -07:00
A type modeling [*Stream] meets either or both of the following requirements:
2016-05-11 08:36:29 -04:00
2017-05-28 09:05:29 -07:00
* [*AsyncStream]
* [*SyncStream]
2016-05-11 08:36:29 -04:00
[heading:AsyncStream AsyncStream]
2017-05-28 09:05:29 -07:00
A type modeling [*AsyncStream] meets the following requirements:
2016-05-11 08:36:29 -04:00
* __AsyncReadStream__
* __AsyncWriteStream__
2016-05-11 08:36:29 -04:00
[heading:SyncStream SyncStream]
2017-05-28 09:05:29 -07:00
A type modeling [*SyncStream] meets the following requirements:
2016-05-11 08:36:29 -04:00
* __SyncReadStream__
* __SyncWriteStream__
2016-05-11 08:36:29 -04:00
[endsect]