コード例 #1
0
  /**
   * @param command
   * @param read
   */
  private void handleRead(Command command, byte read) {

    if (command.getResponseData() == null && (read & Module.CTR_NET) == Module.CTR_NET) {
      NetworkManager networkManager = mController.getNetworkManager();
      command.setState(networkManager, Command.STATE_STARTED);
      networkManager.connect(command);
    }
  }
コード例 #2
0
  /**
   * @param command
   * @param write
   */
  private void handleWrite(Command command, byte write) {

    if ((write & Module.CTR_NET) == Module.CTR_NET) {
      NetworkManager networkManager = mController.getNetworkManager();
      command.setState(networkManager, Command.STATE_STARTED);
      networkManager.connect(command);
    }
  }