title: How can I buffer non-blocking IO?
body: <p>When I need buffered IO on blocking file descriptor I use stdio. But if I turn file descriptor into non-blocking  mode according to manual stdio buffering is unusable. After some research I see that BIO can be usable for buffering non-blocking IO.</p>
  
  <p>But may be there are other alternatives?</p>
  
  <p>I need this to avoid using threads in a multi-connection environment.</p>