示例#1
0
        public void sendPacket(PacketClass packet)
        {
            Console.WriteLine("Sending packet...");

            NodeButton nextNode = findNextNode(packet.destinationAddress);

            if (nextNode != null)
            {
                nextNode.receivePacket(packet);
            }
            else
            {
                Console.WriteLine("Next Node not found!");
            }
        }