Event driven network I/O

The basic idea is that it should be the read/write operations that registers for select/poll/whatever notification, and not the other way around.

To do this, all I/O functions needs to be turned into asyncronous operations with completetion callbacks.

Benefits

Notes

The reference counted buffers needs to keep

Why a cbdata type is required for the filehandle:

  1. if there is pending callbacks when a handle is closed
  2. to 100% be able to detect if the caller reuses a closed handle, either directly or indirectly via a pending callback.
  3. fresh start for each new handle

Squid Now! Cache Now! Valid HTML 4.0! SourceForge
$Id: design.html,v 1.1 2001/02/18 01:38:37 hno Exp $