start of new file
[IRC.git] / Robust / src / Benchmarks / Jhttpp2 / Java / Jhttpp2Launcher.java
1 /* Written and copyright 2001-2003 Benjamin Kohl.
2  * Distributed under the GNU General Public License; see the README file.
3  * This code comes with NO WARRANTY.
4  */
5
6 //import java.awt.Dimension;
7 //import java.awt.Toolkit;
8 //import javax.swing.UIManager;
9
10 //import Jhttpp2MainFrame;
11 /**
12  * Title:        jHTTPp2: Java HTTP Filter Proxy
13  * Description: starts thwe Swing GUI or the console-mode only proxy
14  * Copyright:    Copyright (c) 2001-2003
15  *
16  * @author Benjamin Kohl
17  */
18
19 public class Jhttpp2Launcher {
20
21     public static void main(String[] args) {
22         Jhttpp2Server server = new Jhttpp2Server(true);
23         if (server.error) {
24             System.printString("Error: " + server.error_msg);
25         }
26         else {
27             server.start();
28             System.printString("Running on port " + server.port+"\n");
29         }
30     }
31 }