The first problem is that i can not connect a second client on the server.
The second one is that if client send this: "hat" (three letters) everything goes right but if the client send "hato" (four letters) the server prints out :