title: Asynchronous I/O Linux
body: <p>Need an async I/O Processing</p>
  
  <p>Plan to use async I/O through aio* calls on Linux</p>
  
  <p>The situation:</p>
  
  <p>I have opened socket with AF_INET and SOCK_STREAM flags (TCP)
  Have limit high watermark for send buffers 
  Want to write to that socket asynchronously, and when send buffer overflows, want to disconnect an socket</p>
  
  <p>So, I have questions:</p>
  
  <ol>
  <li><p>When I made async call to aio_write on TCP socket, when I/O completion will arrives - when buffer written out into socket buffer or delivery is confirmed? How I can manage this behavior?</p></li>
  <li><p>How's best to handle this with lio_listio techniques</p></li>
  </ol>
  
  <p>Regards,
  Andrew</p>