Package org.dhcp4java

Examples of org.dhcp4java.DHCPCoreServer


       
    }
   
    @Test
    public void testInitServerNullProps() throws Exception {
      DHCPCoreServer server = DHCPCoreServer.initServer(new DHCPServerTestServlet(), null);
      assertNotNull(server);
      server.stopServer();
    }
View Full Code Here


        Properties localProperties = new Properties();

        localProperties.put(DHCPCoreServer.SERVER_ADDRESS, SERVER_ADDR + ':' + SERVER_PORT);
        localProperties.put(DHCPCoreServer.SERVER_THREADS, "1");

        DHCPCoreServer server = DHCPCoreServer.initServer(new DHCPServerTestServlet(), localProperties);
        new Thread(server).start();
        synchronized (this) {
          wait(300);
        }
        server.stopServer();
    }
View Full Code Here

     *
     * @param args
     */
    public static void main(String[] args) {
        try {
            DHCPCoreServer server = DHCPCoreServer.initServer(new DHCPSnifferServlet(), null);
            new Thread(server).start();
        } catch (DHCPServerInitException e) {
            logger.log(Level.SEVERE, "Server init", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.dhcp4java.DHCPCoreServer

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.