static void Main(string[] args) { Server s = new Server(); Client cl = new Client("Jc", s); Client c2 = new Client("Max", s); Client c3 = new Client("Gui", s); cl.Envoyer("salut"); c2.Envoyer("salut"); c3.Envoyer("Salut a vous!!!"); c2.Envoyer("Ca va les copains?"); Console.Read(); }
//constructeur public Client(string pseudo, Server s) { _pseudo = pseudo; _myServer = s; Enregister(); }