9
3

Streams.qbk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [/
  2. Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. Official repository: https://github.com/boostorg/beast
  6. ]
  7. [section:streams Streams]
  8. A stream in the context of Beast and networking, represents a full-duplex
  9. connection between two programs or hosts, where data represented as
  10. bytes may be received reliably in the same order they were written.
  11. Streams may support any combination of synchronous and/or asynchronous
  12. reading and writing.
  13. Stream concepts are based on named requirements in networking:
  14. [heading:Stream Stream]
  15. A type modeling [*Stream] meets either or both of the following requirements:
  16. * [*AsyncStream]
  17. * [*SyncStream]
  18. [heading:AsyncStream AsyncStream]
  19. A type modeling [*AsyncStream] meets the following requirements:
  20. * __AsyncReadStream__
  21. * __AsyncWriteStream__
  22. [heading:SyncStream SyncStream]
  23. A type modeling [*SyncStream] meets the following requirements:
  24. * __SyncReadStream__
  25. * __SyncWriteStream__
  26. [endsect]