Пример #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();
        }
Пример #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();
        }
Пример #3
0
 static void Main(string[] args)
 {
     Serveur serveur = new Serveur();
 }