Package one.nio.server

Examples of one.nio.server.Server


import one.nio.server.Server;

public class MultiServerTest {

    public static void main(String[] args) throws Exception {
        Server server = new Server(new ConnectionString("localhost|127.0.0.2:8080?keepalive=10"));
        server.start();

        while (server.getAcceptedSessions() < 3) {
            Thread.sleep(10);
        }

        server.stop();
    }
View Full Code Here

TOP

Related Classes of one.nio.server.Server

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.