Example #1
0
  public static ExecutionVenueNioServer createServer(
      String host, int port, byte serverVersion, TlsNioConfig cfg) {
    cfg.setListenAddress(host);
    cfg.setListenPort(port);

    return createServer(serverVersion, cfg);
  }
Example #2
0
  public static TlsNioConfig getDefaultConfig() {
    TlsNioConfig cfg = new TlsNioConfig();
    cfg.setNioLogger(new NioLogger("ALL"));

    cfg.setReuseAddress(true);
    cfg.setTcpNoDelay(true);

    return cfg;
  }