Read/write out into separate methods in the sample echo server.
External C interface with cffi.
External event dispatcher.