Refactor, nettoyage, implementation sockets esclave