Package net.sf.cindy

Examples of net.sf.cindy.SessionAcceptorHandlerAdapter


    private static void startService(int port, final SessionHandler handler,
            String serviceType) {
        SessionAcceptor acceptor = SessionFactory
                .createSessionAcceptor(SessionType.TCP);
        acceptor.setListenPort(port);
        acceptor.setAcceptorHandler(new SessionAcceptorHandlerAdapter() {

            public void sessionAccepted(SessionAcceptor acceptor,
                    Session session) throws Exception {
                session.setSessionHandler(handler);
                session.start();
View Full Code Here

TOP

Related Classes of net.sf.cindy.SessionAcceptorHandlerAdapter

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.