예제 #1
0
        private static LinkedListStack <Node> PrepareMessage(RelayMessage message)
        {
            LinkedListStack <Node> nodes = NodeManager.Instance.GetNodesForMessage(message);

            message.RelayTTL--;
            SetHydrationPolicy(message);

            if (nodes.Count > 0)
            {
                System.Net.IPAddress myAddress = NodeManager.Instance.MyIpAddress;
                if (myAddress != null)
                {
                    message.AddAddressToHistory(myAddress);
                }
            }

            DebugWriter.WriteDebugInfo(message, nodes);
            return(nodes);
        }