Code

client: Make I/O handling more flexible.