Spinach.SwarmMemory.BroadcastPlot C# (CSharp) Method

BroadcastPlot() public method

public BroadcastPlot ( string plot ) : void
plot string
return void
        public void BroadcastPlot(string plot)
        {

            if (permissions.Count > 0)
            {
                string xml = "<Plotmsg>" + "<Pid>" + Pid + "</Pid>" + "<Plot>" + plot + "</Plot>" + "</Plotmsg>";
                AsynchronousSocketListener msocket = conn.getSocket();
                string myIP = msocket.GetIP();
                string myPort = msocket.GetPort();
                List<string> endPoints = Peers();
                Hashtable temp = conn.GetIPtoPeer();
                Hashtable tempToSend = new Hashtable();

                foreach (DictionaryEntry item in temp)
                {
                    if (endPoints.Contains(item.Key.ToString()))
                    {
                        tempToSend.Add(item.Key, item.Value);
                    }
                }

                AsynchronousClient client = new AsynchronousClient();
                client.SetMultiMsg(tempToSend, xml, myIP + ":" + myPort);
                Thread t = new Thread(new ThreadStart(client.SendMultiClientChat));
                t.IsBackground = true;
                t.Start();
            }
        }