Package chatroom.connection

Examples of chatroom.connection.ServerConnection


    }

    /** Handles incoming TCP sockets */
    @Override
    public void onConnection(SocketChannel channel) throws IOException {
        ServerConnection cnt = new ServerConnection(channel);
        connectionPool.put(cnt.getConnectionId(), cnt);
        ChatroomServer.getServer().addUser(cnt);
        cnt.setDaemon(true);
        cnt.start();
    }
View Full Code Here

TOP

Related Classes of chatroom.connection.ServerConnection

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.