Beispiel #1
0
        private void    SendBroadcast(Messages.MessageBase msg)
        {
            var jsonString = JsonConvert.SerializeObject(msg);

            foreach (var node in m_configuration.Nodes)
            {
                // Skip this application node.
                if (node.NodeID == m_configuration.NodeID)
                {
                    continue;
                }

                m_protocol.Send(jsonString, node.Port, node.NodeIP);
            }
        }
Beispiel #2
0
        private void Send(Messages.MessageBase msg, UInt16 port, string address)
        {
            var jsonString = JsonConvert.SerializeObject(msg);

            m_protocol.Send(jsonString, port, address);
        }