コード例 #1
0
  public static void main(String[] args) {
    Utils.createRequiredFiles();
    Utils.cleanAllAttestations();

    // manually initialize jose4j
    org.jose4j.jwa.AlgorithmFactoryFactory.getInstance();

    new SocketServer(
            ConnectionType.UDP,
            IntuitiveBiddingHandler.class,
            Config.INTUITIVE_BIDDER_SERVICE_UDP_PORT)
        .start();
    new SocketServer(ConnectionType.UDP, BiddingHandler.class, Config.BIDDING_SERVICE_UDP_PORT)
        .start();

    System.out.println("Ready to go!");
  }