コード例 #1
0
 public void consumeUdp(Command command)
 {
     command.setNetworkProtocolType(NetworkProtocolType.unicast);
     if (command.isComposite())
     {
         List<Command> commands = command.getCommands();
         foreach (Command newCommand in commands)
         {
             newCommand.setNetworkProtocolType(NetworkProtocolType.unicast);
         }
         command.Push(PlanckDBConstants.COMMANDS, PlanckDBConstants.COMMAND_LIST, commands);
     }
     command.setNetworkProtocolType(NetworkProtocolType.unicast);
     try
     {
         consume(command);
     }
     catch (Exception e)
     {
         log.error(e.Message, e);
     }
 }