Beispiel #1
0
        public void SendMaterial(MaterialPaquet ap)
        {
            TcpClient client = new TcpClient("127.0.0.1", 1800);

            NetworkStream stream = client.GetStream();

            Paquet.Send(ap, stream);
            Console.WriteLine("j'envois le matériel de la table " + ap.IdTable);

            Thread.Sleep(100);
        }
Beispiel #2
0
        public void SendCommande(CommandePaquet ap)
        {
            TcpClient client = new TcpClient("127.0.0.1", 1801);

            NetworkStream stream = client.GetStream();

            Paquet.Send(ap, stream);
            Console.WriteLine("j'envois la commande de la table " + ap.IdTable);

            Thread.Sleep(100);
        }