private void startServers(){
  Util.printSection("=====Starting Network======");
  NioServer nioServer=new NioServer(NetworkConfig.NIO_READ_WRITE_THREADS,new ServerCfg(NetworkConfig.GAME_BIND_ADDRESS,NetworkConfig.GAME_PORT,"Game Connections",new GameConnectionFactoryImpl()));
  LoginServer ls=LoginServer.getInstance();
  ChatServer cs=ChatServer.getInstance();
  ls.setNioServer(nioServer);
  cs.setNioServer(nioServer);
  nioServer.connect();
  ls.connect();
  if (GSConfig.ENABLE_CHAT_SERVER) {
    cs.connect();
  }
  Util.printSection("===========================");
}

private void startServers ( ) { Util . printSection ( "=====Starting Network======" ) ; NioServer nioServer = new NioServer ( NetworkConfig . NIO_READ_WRITE_THREADS , new ServerCfg ( NetworkConfig . GAME_BIND_ADDRESS , NetworkConfig . GAME_PORT , "Game Connections" , new GameConnectionFactoryImpl ( ) ) ) ; LoginServer ls = LoginServer . getInstance ( ) ; ChatServer cs = ChatServer . getInstance ( ) ; ls . setNioServer ( nioServer ) ; cs . setNioServer ( nioServer ) ; nioServer . connect ( ) ; ls . connect ( ) ; if ( GSConfig . ENABLE_CHAT_SERVER ) { cs . connect ( ) ; } Util . printSection ( "===========================" ) ; }
starts servers for connection with aion client and login \ chat server .
