<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Frage zu Boost asio - unterschiede read und receive]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab da mal ne Frage zu boost::asio... und zwar... dort gibt es die Klasse boost::asio::tcp::socket und diese hat unter anderem folgende Methoden:</p>
<p>async_read und async_receive</p>
<p>was ist denn genau der unterschied zwischen read und receive? Wann nimmt man was?</p>
<p>Danke schonmal</p>
<p>Grüßle Sulo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/277286/frage-zu-boost-asio-unterschiede-read-und-receive</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 01:42:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/277286.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Nov 2010 10:23:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu Boost asio - unterschiede read und receive on Tue, 16 Nov 2010 10:23:14 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab da mal ne Frage zu boost::asio... und zwar... dort gibt es die Klasse boost::asio::tcp::socket und diese hat unter anderem folgende Methoden:</p>
<p>async_read und async_receive</p>
<p>was ist denn genau der unterschied zwischen read und receive? Wann nimmt man was?</p>
<p>Danke schonmal</p>
<p>Grüßle Sulo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1981117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1981117</guid><dc:creator><![CDATA[sulochiller]]></dc:creator><pubDate>Tue, 16 Nov 2010 10:23:14 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Boost asio - unterschiede read und receive on Tue, 16 Nov 2010 11:56:46 GMT]]></title><description><![CDATA[<p>Steht doch in der Dokumentation zu <code>async_receive</code> :</p>
<blockquote>
<p>The receive operation may not receive all of the requested number of bytes. Consider using the <code>async_read</code> function if you need to ensure that the requested amount of data is received before the asynchronous operation completes.</p>
</blockquote>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1981148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1981148</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Tue, 16 Nov 2010 11:56:46 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Boost asio - unterschiede read und receive on Tue, 16 Nov 2010 13:04:43 GMT]]></title><description><![CDATA[<p>Die richtige Frage wäre wohl: Was ist der Unterschied zwischen (async)receive und (async)read_some. Der einzige Unterschied den ich sehe ist dass receive noch ein paar Flags nehmen kann. Bis jetzt habe ich in der Doku aber nichts darüber gefunden.</p>
<p>Edit:<br />
Ah, das scheinen die flags zu sein:</p>
<pre><code class="language-cpp">/// Peek at incoming data without removing it from the input queue.
  static const int message_peek = implementation_defined;

  /// Process out-of-band data.
  static const int message_out_of_band = implementation_defined;

  /// Specify that the data should not be subject to routing.
  static const int message_do_not_route = implementation_defined;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1981180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1981180</guid><dc:creator><![CDATA[__Stefan__]]></dc:creator><pubDate>Tue, 16 Nov 2010 13:04:43 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Boost asio - unterschiede read und receive on Tue, 16 Nov 2010 13:13:25 GMT]]></title><description><![CDATA[<p>Sind beide identisch. <code>read_some</code> soll die Nähe zu <code>iostreams</code> aufzeigen und <code>receive</code> die Nähe zu Sockets. Quasi zwei Namen für die gleiche Funktion, wobei je nach Betrachtung der eine oder andere Name verwendet wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1981191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1981191</guid><dc:creator><![CDATA[Tachyon]]></dc:creator><pubDate>Tue, 16 Nov 2010 13:13:25 GMT</pubDate></item></channel></rss>