Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.Write("Me is client. Me is input. Me sending random number things.\n");
            Console.Write("Me waiting connection...\n");

            try {
                USender sender = new ULoader_JSON("config.json").GetSender("output1");

                for (int i = 0; i < 3; i++) {
                    sender.SendData(_8randomBytes());
                }

                Console.Write("Data sent successfully. Me exiting after you pressing return.\n");
            } catch (UException ex) {
                Console.Write(String.Format("Something went horribly wrong:\n\t{0}\n", ex.Message));
            }

            Console.ReadKey();
        }