title: boost.asio read many packets
body: <p>I'm newest in boost asio. I write program for VoIP. But I dont understand how I can write many packets. That's my code.</p>
  
  <p>Microphone. </p>
  
  <pre><code>boost::asio::write(socket, boost::asio::buffer(data,val*2),error);
  </code></pre>
  
  <p>every 10ms in while</p>
  
  <p>Speaker</p>
  
  <pre><code>accepter.accept(socket);
  while (true)
  {
      bool is_open = socket.is_open();
      if (!is_open) break;
      //cout&lt;&lt;"Connected"&lt;&lt;endl;
      boost::system::error_code error;
      boost::array &lt;char, 441&gt; buffer;    
      size_t len = socket.read_some(boost::asio::buffer(buffer),error);
      //Play buffer sound
      cout.write(buffer.data(),441); //for check
  
  }
  </code></pre>
  
  <p>If i start 2 programs, In console I see repeating charater set. What I need to do?</p>