コード例 #1
0
ファイル: Program.cs プロジェクト: ulricheza/Isima
 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();
 }
コード例 #2
0
ファイル: Client.cs プロジェクト: ulricheza/Isima
 //constructeur
 public Client(string pseudo, Server s)
 {
     _pseudo = pseudo;
     _myServer = s;
     Enregister();
 }