1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Streams</title> 5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../index.html" title="Chapter 1. Boost.Beast"> 8<link rel="up" href="../concepts.html" title="Concepts"> 9<link rel="prev" href="RatePolicy.html" title="RatePolicy"> 10<link rel="next" href="../design_choices.html" title="Design Choices"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="RatePolicy.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../design_choices.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h3 class="title"> 27<a name="beast.concepts.streams"></a><a class="link" href="streams.html" title="Streams">Streams</a> 28</h3></div></div></div> 29<p> 30 A stream in the context of Beast and networking, represents a full-duplex 31 connection between two programs or hosts, where data represented as bytes 32 may be received reliably in the same order they were written. Streams may 33 support any combination of synchronous and/or asynchronous reading and writing. 34 </p> 35<p> 36 Stream concepts are based on named requirements in networking: 37 </p> 38<h5> 39<a name="beast.concepts.streams.h0"></a> 40 <span class="phrase"><a name="beast.concepts.streams.Stream"></a></span><a class="link" href="streams.html#beast.concepts.streams.Stream">Stream</a> 41 </h5> 42<p> 43 A type modeling <span class="bold"><strong>Stream</strong></span> meets either or both 44 of the following requirements: 45 </p> 46<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 47<li class="listitem"> 48 <span class="bold"><strong>AsyncStream</strong></span> 49 </li> 50<li class="listitem"> 51 <span class="bold"><strong>SyncStream</strong></span> 52 </li> 53</ul></div> 54<h5> 55<a name="beast.concepts.streams.h1"></a> 56 <span class="phrase"><a name="beast.concepts.streams.AsyncStream"></a></span><a class="link" href="streams.html#beast.concepts.streams.AsyncStream">AsyncStream</a> 57 </h5> 58<p> 59 A type modeling <span class="bold"><strong>AsyncStream</strong></span> meets the following 60 requirements: 61 </p> 62<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 63<li class="listitem"> 64 <a href="../../../../../../doc/html/boost_asio/reference/AsyncReadStream.html" target="_top"><span class="emphasis"><em>AsyncReadStream</em></span></a> 65 </li> 66<li class="listitem"> 67 <a href="../../../../../../doc/html/boost_asio/reference/AsyncWriteStream.html" target="_top"><span class="emphasis"><em>AsyncWriteStream</em></span></a> 68 </li> 69</ul></div> 70<h5> 71<a name="beast.concepts.streams.h2"></a> 72 <span class="phrase"><a name="beast.concepts.streams.SyncStream"></a></span><a class="link" href="streams.html#beast.concepts.streams.SyncStream">SyncStream</a> 73 </h5> 74<p> 75 A type modeling <span class="bold"><strong>SyncStream</strong></span> meets the following 76 requirements: 77 </p> 78<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 79<li class="listitem"> 80 <a href="../../../../../../doc/html/boost_asio/reference/SyncReadStream.html" target="_top"><span class="emphasis"><em>SyncReadStream</em></span></a> 81 </li> 82<li class="listitem"> 83 <a href="../../../../../../doc/html/boost_asio/reference/SyncWriteStream.html" target="_top"><span class="emphasis"><em>SyncWriteStream</em></span></a> 84 </li> 85</ul></div> 86</div> 87<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 88<td align="left"></td> 89<td align="right"><div class="copyright-footer">Copyright © 2016-2019 Vinnie 90 Falco<p> 91 Distributed under the Boost Software License, Version 1.0. (See accompanying 92 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 93 </p> 94</div></td> 95</tr></table> 96<hr> 97<div class="spirit-nav"> 98<a accesskey="p" href="RatePolicy.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../design_choices.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a> 99</div> 100</body> 101</html> 102