/** * Create instance but does not start handshake. * * @param myKey * @param input * @param output * * @throws IOException */ public BitrustedConnector(PrivateKey myKey, InputStream input, OutputStream output) throws IOException { this.myKey = myKey; connection = new Farcall(new BossConnector(input, output)); connection.asyncCommands(Executors.newSingleThreadExecutor()); }
fa.asyncCommands(); fa.start(command -> { if (command.getName().equals("fast")) {
a.asyncCommands(); a.start(command -> { switch (command.getName()) {