Code example for GamesClient

Methods: connect

0
     
    void connectCurrentClient() { 
        debugLog("connectCurrentClient"); 
       switch (mClientCurrentlyConnecting) {
            case CLIENT_GAMES:
                mGamesClient.connect();
                break; 
            case CLIENT_APPSTATE:
                mAppStateClient.connect();
                break; 
            case CLIENT_PLUS:
                mPlusClient.connect();
                break; 
        } 
    } 
     
    void killConnections(int whatClients) {
        debugLog("killConnections"); 
        if ((whatClients & CLIENT_GAMES) != 0 && mGamesClient != null 
                && mGamesClient.isConnected()) {
            mConnectedClients &= ~CLIENT_GAMES;