Ejemplo n.º 1
0
        private void StartCommandParsing()
        {
            Console.WriteLine("Enter MPLS out label to direct packet to specific remote host and message you want to send.\n" +
                              "Input format: <<mpls_out_label>> [space] <<message>>");
            while (true)
            {
                Console.Write("> ");
                string input = Console.ReadLine();

                try
                {
                    (string mplsOutLabel, string message) = _commandParser.ParseCommand(input);
                    _clientNodeManager.Send(mplsOutLabel, message, _commandParser.CheckMplsOutLabel(mplsOutLabel));
                }
                catch (ParserException e)
                {
                    LOG.Warn(e.ExceptionMessage);
                }
            }
        }