Put buffered net I/O in its own module.