On Tue, Jul 8, 2008 at 3:14 PM, <[EMAIL PROTECTED]> wrote: >> Basically you just need an >> understanding of how async programming works - from there everything >> starts to become obvious.
never block for IO. Work out the state so that you can drop everything and pick it up later whenever you would be waiting for IO from any source. Keep all per-connection data in an object. Does this make sense? There are a mess of tutorials listed at the bottom of http://en.wikipedia.org/wiki/Event-driven_programming