Package one.nio.net

Source Code of one.nio.net.MultiServerTest

package one.nio.net;

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();
    }
}
TOP

Related Classes of one.nio.net.MultiServerTest

TOP
Copyright © 2018 www.massapi.com. 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.