Package net.sourceforge.kitteh

Examples of net.sourceforge.kitteh.WebServer


  public WebSocketTest() throws Exception
  {
    FileProducer f = new FileProducer("www");
        f.setDefaultFile("websocket.html");
    WebServer w = new WebServer(f,8080);
    w.setWebSocketListener(this);
    w.runAsThread();
    System.out.println("Server started!");
    System.out.println("Press ENTER to quit.");
   
    BufferedReader r = new BufferedReader(new InputStreamReader( System.in ));
    r.readLine();
    w.close();
    System.out.println("Quitting");
  }
View Full Code Here


    });
    DocumentProducer f = new FileProducer("www");
   
    DocumentProducer d = new DispatcherProducer(rules, f);
       
    WebServer w = new WebServer(d,8080);
    w.runAsThread();
    System.out.println("Server started!");
    System.out.println("Press ENTER to quit.");
   
    BufferedReader r = new BufferedReader(new InputStreamReader( System.in ));
    r.readLine();
    w.close();
    System.out.println("Quitting");
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.kitteh.WebServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.