Ejemplo n.º 1
0
        public ClientManager(Serveur serveur, TcpClient client, int id )
        {
            this.serveur = serveur;
            this.client = client;
            this.id = id;
            reader = new StreamReader(client.GetStream());

            Thread thread = new Thread(new ThreadStart(ChatListener));
            thread.Start();
        }
Ejemplo n.º 2
0
        public ClientManager(Serveur serveur, TcpClient client, int id)
        {
            this.serveur = serveur;
            this.client  = client;
            this.id      = id;
            reader       = new StreamReader(client.GetStream());

            Thread thread = new Thread(new ThreadStart(ChatListener));

            thread.Start();
        }
Ejemplo n.º 3
0
 static void Main(string[] args)
 {
     Serveur serveur = new Serveur();
 }