Implementation of network communication methodes

all connexion, read and write methode made