Minimal server/client programs using select()