Esempio n. 1
0
 private void onDebugAddDummy(object sender, EventArgs e)
 {
     System.Random rnd = new Random();
     monotifications.Message m = new monotifications.Message();
     m["content"] = "register";
     m["type"] = "-1";
     m["myPort"] = (rnd.Next(1000) + 1000).ToString();
     m["myAddress"] = "0.0." + rnd.Next(250) +"."+ rnd.Next(250);
     m["subscription"] = "Zombies";
     m["hostname"] = "Zombie-"+ rnd.Next(32468);
     client.network.talker(client.serverAddress, client.serverPort, m.ToString());
 }
Esempio n. 2
0
        private void onSelfTest(object sender, EventArgs e)
        {
            monotifications.Message msg = new monotifications.Message();
            msg["content"] = "This is a self test";
            msg["title"] = "SELF TEST";
            msg["type"] = "information";

            client.network.talker(client.address, client.listenPort, msg.ToString());
        }