Change to C and lay the base for select() I/O multiplexing