Some code correction

Closing the descriptors at the end of the programs.
Adding some comments.
Deleting unused variable.
Some correction

I forgot a EXIT_SUCCESS instead of EXIT_FAILURE
Primary Client version

Primary basic version using connect function for TCP protocol. No
thread for the moment.