client: Remove some C headers from client.c file
Fix preivous commit. Just recv returns zero in the case of the closed socket.
Added some more TODO notes