<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1031280330129304479</atom:id><lastBuildDate>Wed, 11 Sep 2024 13:29:35 +0000</lastBuildDate><category>asio</category><category>cpp</category><category>erlang</category><category>cbe</category><category>file processing</category><category>hint</category><category>kcachegrind</category><category>linked-in driver</category><category>port_control</category><category>spe</category><category>valgring</category><title>sergey miryanov (en)</title><description></description><link>http://sergey-miryanov-en.blogspot.com/</link><managingEditor>noreply@blogger.com (Sergey Miryanov)</managingEditor><generator>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-991793420017679954</guid><pubDate>Wed, 10 Feb 2010 11:43:00 +0000</pubDate><atom:updated>2010-02-10T03:48:44.141-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">erlang</category><category domain="http://www.blogger.com/atom/ns#">linked-in driver</category><category domain="http://www.blogger.com/atom/ns#">port_control</category><title>Erlang, port_control, linked-in driver and badarg</title><description>port_control function may return badarg if control function (implemented in linked-in driver) returns value which not equals number of bytes filled in rbuf.</description><link>http://sergey-miryanov-en.blogspot.com/2010/02/erlang-portcontrol-linked-in-driver-and.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-7266772369136921843</guid><pubDate>Tue, 29 Dec 2009 07:13:00 +0000</pubDate><atom:updated>2009-12-28T23:17:22.933-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">erlang</category><title>How to connect to erlang node on remote machine</title><description>I&#39;m very new in Erlang node and just studing it.&lt;br /&gt;I have some trouble with connecting Erlang nodes on remote machine. And I found following solution:&lt;br /&gt;Erlang (or erlang shell) should be started with same cookie on remote machines, i.e.:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;erl -name node1 -setcookie my-cookie&lt;br /&gt;erl -name node2 -setcookie my-cookie&lt;br /&gt;&lt;/pre&gt;</description><link>http://sergey-miryanov-en.blogspot.com/2009/12/how-to-connect-to-erlang-node-on-remote.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-8525080050474178995</guid><pubDate>Fri, 10 Jul 2009 05:46:00 +0000</pubDate><atom:updated>2009-07-09T23:00:57.026-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">hint</category><category domain="http://www.blogger.com/atom/ns#">kcachegrind</category><category domain="http://www.blogger.com/atom/ns#">valgring</category><title>valgrind, dlopen and debug info</title><description>You may encounter with following situation: you profile your application with valgrind, run the KCachegrind and you are not seeing debug info for some your modules.&lt;br /&gt;&lt;br /&gt;As wrote in the internets this is a bug (http://bugs.kde.org/show_bug.cgi?id=142086, http://bugs.kde.org/show_bug.cgi?id=79362).&lt;br /&gt;&lt;br /&gt;In my case I can avoid this bug as following: disable unloading of modules via dlclose.</description><link>http://sergey-miryanov-en.blogspot.com/2009/07/valgrind-dlopen-and-debug-info.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-4509900489120449247</guid><pubDate>Sat, 26 Jul 2008 15:50:00 +0000</pubDate><atom:updated>2008-07-26T08:52:54.909-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cbe</category><category domain="http://www.blogger.com/atom/ns#">spe</category><title>SPE stalls and power saving</title><description>&lt;blockquote&gt;If the write channel is blocking , then a wrch instruction that is issued when the count for that channel is equal to zero will stall the SPE. Stalling on a wrch instruction can be useful because it saves power.&lt;/blockquote&gt;</description><link>http://sergey-miryanov-en.blogspot.com/2008/07/spe-stalls-and-power-saving.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-1505578238119252721</guid><pubDate>Tue, 01 Jul 2008 14:33:00 +0000</pubDate><atom:updated>2008-07-01T08:20:29.398-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asio</category><category domain="http://www.blogger.com/atom/ns#">file processing</category><title>asio and asynchronous file processing</title><description>Some weeks ago I began tests of reading amount numbers of floats from a text file. I wrote simple test framework and test and compare different methods of file reading. &lt;a href=&quot;http://alexott.blogspot.com/&quot;&gt;Alex&lt;/a&gt; advises me to try the asio in my tests. He advises me to try a version from CVS but I decide to try the latest version – 1.1.0. I use Windows and all my experiments related to it.&lt;br /&gt;&lt;br /&gt;Asio has class asio::windows::basic_stream_handle that allows to read stream of data from file. But in the latest version this class &lt;a href=&quot;http://sergey-miryanov-en.blogspot.com/2008/06/asioasyncread-and-asiowindowsbasicstrea.html&quot;&gt;has a bug&lt;/a&gt; – file pointer not moved and all subsequent calls read data from begin of the file.&lt;br /&gt;&lt;br /&gt;The last version from CVS has class asio::windows::basic_random_access_handle that allows to read block (or stream) of data from arbitrary position in file. Using this class I can make my tests.&lt;br /&gt;&lt;br /&gt;Test file has following structure: &lt;br /&gt;&lt;pre&gt;section_name&lt;br /&gt;  float float float float&lt;br /&gt;  float float float float&lt;br /&gt;  …&lt;br /&gt;  float float float float&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;section_name&lt;br /&gt;  float float float float&lt;br /&gt;  …&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;How we read data from the file using the asio? Asio provide functions and classes for read data in two modes – a synchronous and asynchronous. &lt;br /&gt;&lt;br /&gt;In my tests I use a hybrid scheme – I read data synchronously for locate section in file and use the asynchronous mode and &lt;a href=&quot;http://en.wikipedia.org/wiki/Double_buffering&quot;&gt;double-buffering idiom&lt;/a&gt; for process float list. Also I run tests only on the first section so code for location section has a small bug.&lt;br /&gt;&lt;br /&gt;And now super prize for patient readers – &lt;a href=&quot;http://www.everfall.com/paste/id.php?pkg8djbs34e9&quot;&gt;source code of my tests&lt;/a&gt;, &lt;a href=&quot;http://www.filefactory.com/file/d23391/n/test_asio_rar&quot;&gt;full source (sorry, for filefactory)&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;And so, first I define reading handler that will be invoked by the asio kernel when read data will be ready to process. In my sources it&#39;s a read_handler function.&lt;br /&gt;&lt;br /&gt;Second, before start read data we should define condition with reading will stop. In my sources it&#39;s a complete_condition function.&lt;br /&gt;&lt;br /&gt;Third, we should define destination of the read data. In the most examples boost::array used or asio::streambuf. boost::array I can&#39;t use because reading data without buffering requires that data buffer should be sector aligned. asio::streambuf has &lt;a href=&quot;http://alexott.blogspot.com/2007/11/some-tips-for-boostasio.html&quot;&gt;its own disadvantages&lt;/a&gt;. And so, I use raw pointers.&lt;br /&gt;&lt;br /&gt;As I wrote above I early had written realization of test using standard Windows API. I compare results that were obtained and I can conclude that a realization of the asio library is a very and very good.&lt;br /&gt;&lt;center&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://fotki.yandex.ru/users/sergey-miryanov/view/61585/&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px;&quot; src=&quot;http://img-fotki.yandex.ru/get/25/sergey-miryanov.1/0_f091_a1b04f28_XL&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;font size=&quot;-2&quot;&gt;&lt;br /&gt;test of random access from file without buffering (FILE_FLAG_NO_BUFFERING)&lt;br /&gt;On the horizontal bar - size of data buffer (bytes), on the vertical bar - data transfer rate (MB/s)&lt;/font&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;And also I will choose the asio for all my following projects that require file processing first.</description><link>http://sergey-miryanov-en.blogspot.com/2008/07/asio-and-asynchronous-file-processing.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-2293566262497638973</guid><pubDate>Wed, 25 Jun 2008 19:12:00 +0000</pubDate><atom:updated>2008-06-25T12:14:46.255-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asio</category><title>asio::io_service::reset hint</title><description>I can advise to call &lt;a href=&quot;http://asio.sourceforge.net/asio-1.0.0/doc/asio/reference/io_service/reset.html&quot;&gt;asio::io_service::reset&lt;/a&gt; before each call of asio::io_service::run:&lt;br /&gt;&lt;blockquote&gt;This function must be called prior to any second or later set of invocations of the run(), run_one(), poll() or poll_one() functions when a previous invocation of these functions returned due to the io_service being stopped or running out of work. This function allows the io_service to reset any internal state, such as a &quot;stopped&quot; flag.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This may prevent you from some stupid errors.</description><link>http://sergey-miryanov-en.blogspot.com/2008/06/asioioservicereset-hint.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-4315923499563427451</guid><pubDate>Tue, 24 Jun 2008 17:40:00 +0000</pubDate><atom:updated>2008-06-24T10:45:50.353-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asio</category><category domain="http://www.blogger.com/atom/ns#">cpp</category><title>asio::windows::basic_stream_handle - 2</title><description>Also, we can &#39;hack&#39; windows::basic_stream_handle. If we add following code info file win_iocp_handle_service.hpp after line 691 and basic_stream_handle will works as I expect =)&lt;br /&gt;&lt;br /&gt;I don&#39;t understand all reasons why asio developers chose different way for solving this &#39;problem&#39;.&lt;br /&gt;&lt;br /&gt;&lt;table width = &quot;100%&quot; bgcolor=&quot;#F2F2F2&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;&lt;font color=&quot;#000000&quot;&gt;ptr&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;get&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;()-&amp;gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;Offset&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;=&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;boost&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;uint64_t&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;handler&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;total_transferred_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;&amp;amp;&lt;/font&gt; &lt;b&gt;&lt;font color=&quot;#40B440&quot;&gt;0x&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;#40B440&quot;&gt;FFFFFFFF&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#000000&quot;&gt;ptr&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;get&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;()-&amp;gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;OffsetHigh&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;=&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;boost&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;uint64_t&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;handler&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;total_transferred_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt; &lt;font color=&quot;#40B440&quot;&gt;32&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;&amp;amp;&lt;/font&gt; &lt;b&gt;&lt;font color=&quot;#40B440&quot;&gt;0x&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;#40B440&quot;&gt;FFFFFFFF&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=&quot;right&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;a href=&quot;http://dobrokot.nm.ru/WinnieColorizer.html&quot;&gt;&lt;font color=&quot;#727272&quot; size=&quot;-2&quot;&gt;_Winnie C++ Colorizer&lt;/font&gt;&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</description><link>http://sergey-miryanov-en.blogspot.com/2008/06/asiowindowsbasicstreamhandle-2.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1031280330129304479.post-46287549210174039</guid><pubDate>Tue, 24 Jun 2008 17:18:00 +0000</pubDate><atom:updated>2008-06-24T10:39:02.532-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">asio</category><category domain="http://www.blogger.com/atom/ns#">cpp</category><title>asio::async_read and asio::windows::basic_stream_handle</title><description>Huh.&lt;br /&gt;&lt;br /&gt;Last few days I play with asio. I try to read files asynchronously using asio, but asio doesn’t work properly (I think) in this case.&lt;br /&gt;For example, simple code (see below) doesn’t work as I expect.&lt;br /&gt;&lt;table width = &quot;100%&quot; bgcolor=&quot;#F2F2F2&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;&lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;windows&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;basic_stream_handle&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;&amp;lt;&amp;gt;&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handle_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;streambuf&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;buf_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;async_read&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;stream_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;buf_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;complete_condition_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handler_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;);&lt;/font&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=&quot;right&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;a href=&quot;http://dobrokot.nm.ru/WinnieColorizer.html&quot;&gt;&lt;font color=&quot;#727272&quot; size=&quot;-2&quot;&gt;_Winnie C++ Colorizer&lt;/font&gt;&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;I expect that asio::async_read reads whole file into buffer buf_, but instead this asio fills buffer with block of data read from begin of file.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://alexott.blogspot.com/&quot;&gt;Alex&lt;/a&gt; advise me try version from cvs.sourceforge. In that version windows::basic_stream_handle doesn’t work properly too, but cvs version contains windows::basic_random_access_handle. Using this class we can build working stream that allow us read files sequentially or randomly. For example we can build following sequential stream:&lt;br /&gt;&lt;table width = &quot;100%&quot; bgcolor=&quot;#F2F2F2&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;&lt;font color=&quot;#0000FF&quot;&gt;struct&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;random_handle_wrapper&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#C8003C&quot;&gt;{&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;random_handle_wrapper&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;io_service&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;&amp;amp;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;io_service&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;HANDLE&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;file&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;:&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handle_&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;io_service&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;file&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;file_&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;file&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;transfered_&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#40B440&quot;&gt;0&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;{&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;  &lt;font color=&quot;#0000FF&quot;&gt;template&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;&amp;lt;&lt;/font&gt;&lt;font color=&quot;#0000FF&quot;&gt;typename&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;MutableBufferSequence&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#0000FF&quot;&gt;typename&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;ReadHandler&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;&amp;gt;&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#0000FF&quot;&gt;void&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;async_read_some&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#0000FF&quot;&gt;const&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;MutableBufferSequence&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;&amp;amp;&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;buffers&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;ReadHandler&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handler&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;{&lt;/font&gt;&lt;br /&gt;    &lt;font color=&quot;#000000&quot;&gt;handle_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;async_read_some_at&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;transfered_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;buffers&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handler&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;);&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;  &lt;font color=&quot;#0000FF&quot;&gt;void&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;move_fwd&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;size_t&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;transfered&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;{&lt;/font&gt;&lt;br /&gt;    &lt;font color=&quot;#000000&quot;&gt;transfered_&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;+=&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;transfered&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#C8003C&quot;&gt;}&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;windows&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;basic_random_access_handle&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;&amp;lt;&amp;gt;&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handle_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;HANDLE&lt;/font&gt;            &lt;font color=&quot;#000000&quot;&gt;file_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;boost&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;uint64_t&lt;/font&gt;   &lt;font color=&quot;#000000&quot;&gt;transfered_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;;&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#C8003C&quot;&gt;};&lt;/font&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=&quot;right&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;a href=&quot;http://dobrokot.nm.ru/WinnieColorizer.html&quot;&gt;&lt;font color=&quot;#727272&quot; size=&quot;-2&quot;&gt;_Winnie C++ Colorizer&lt;/font&gt;&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;And read_handler that uses this stream:&lt;br /&gt;&lt;table width = &quot;100%&quot; bgcolor=&quot;#F2F2F2&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt;&lt;font color=&quot;#0000FF&quot;&gt;void&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;read_handler&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;error_code&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;ec&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;size_t&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;transferred&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;)&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#C8003C&quot;&gt;{&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;std&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;cout&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;std&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;string&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;data_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;c_array&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;(),&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;data_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;c_array&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;()&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;+&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;transferred&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;);&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;stream_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;.&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;move_fwd&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;transferred&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;);&lt;/font&gt;&lt;br /&gt;  &lt;font color=&quot;#000000&quot;&gt;asio&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;::&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;async_read&lt;/font&gt; &lt;font color=&quot;#C8003C&quot;&gt;(&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt;stream_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;buf_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;complete_condition_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;,&lt;/font&gt; &lt;font color=&quot;#000000&quot;&gt;handler_&lt;/font&gt;&lt;font color=&quot;#C8003C&quot;&gt;);&lt;/font&gt;&lt;br /&gt;&lt;font color=&quot;#C8003C&quot;&gt;}&lt;/font&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=&quot;right&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;a href=&quot;http://dobrokot.nm.ru/WinnieColorizer.html&quot;&gt;&lt;font color=&quot;#727272&quot; size=&quot;-2&quot;&gt;_Winnie C++ Colorizer&lt;/font&gt;&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</description><link>http://sergey-miryanov-en.blogspot.com/2008/06/asioasyncread-and-asiowindowsbasicstrea.html</link><author>noreply@blogger.com (Sergey Miryanov)</author><thr:total>0</thr:total></item></channel></rss>