Ejemplo n.º 1
0
 private List<ModuleRecord> getWirelessModuleRecords() {
   final RequestWirelessModuleInformation response =
       (RequestWirelessModuleInformation) exchangeMessage(new RequestWirelessModuleInformation());
   if (response == null) {
     getLogger().warning("Failed to get module information: " + getLastError());
     return null;
   }
   return response.getModuleRecords();
 }
 void requestModuleInformation(IMessenger messenger, RequestWirelessModuleInformation msg)
     throws MessengerException {
   final List<ModuleRecord> modules = new ArrayList<ModuleRecord>();
   for (IWirelessSniffingModule m : wirelessModules) {
     modules.add(new ModuleRecord(m.getName(), isWirelessModuleEnabled(m)));
   }
   messenger.emitMessage(msg.createResponse(modules));
 }