code: public static void main(String [] args) {
  
  	RemoteGassServer s = null;
  
  	int port       = 0;
  	boolean secure = true;
  	String host    = null;
  
  	for (int i = 0; i < args.length; i++) {
  	    if (args[i].equals("-h")) {
  		host = args[++i];
  	    } else if (args[i].equals("-p")) {
  		port = Integer.parseInt(args[++i]);
  	    } else if (args[i].equalsIgnoreCase("-i")) {
  		secure = false;
  	    } else {
  		System.err.println("Unknown command: " + args[i]);
  		System.exit(1);
  	    }
  	}
  
  	try {
  	    s = new RemoteGassServer(secure, port);
  
  	    s.setOptions( USER_EXPAND_ENABLE |
  			  TILDE_EXPAND_ENABLE |
  			  LINE_BUFFER_ENABLE |
  			  GassServer.READ_ENABLE |
  			  GassServer.WRITE_ENABLE );
  
  	    s.start(host);
  
  	    System.out.println("Remote gass server url: " + s.getURL());
  
  	    Thread.sleep(10000);
  
  	    System.out.println("Shutting down...");
  
  	} catch(Exception e) {
  	    e.printStackTrace();
  	} finally {
  	    if (s != null) s.shutdown();
  	}
  
  	System.out.println("Done");
  	Deactivator.deactivateAll();
      }
docs: ---------- main ----------------