client.c v2 (added ableto_write, mesg_sent, etc